Re: Raw socket behavior
Date: Thu, 27 Jan 2005 15:11:01 +0100
Dan Wilson wrote:
> Am I safe to just assume one packet per recv and use a big enough
> buffer ?
You should at least set the buffer size to
MTU == 1500 on Ethernet
See 'ifconfig' for actual size on eth0 or ...
No IP packet will (receive) or must not (send) be bigger
than the MTU (message transfer unit) size on the specific
interface.
Toni
Relevant Pages
- Re: Determine when a socket has been closed?
... I thought that the MTU was the issue... ... Secondly for stream based connection recv() returns as soon as ... Do not expect that if you send one application packet from one sender end ... (microsoft.public.win32.programmer.networks) - Re: Winsock recv() and unfragmented packets
... I was wondering if a call to recv() will return all data for an unfragmented ... packet shouldn't be fragmented so it'll arrive on the server in one piece.. ... Does this mean that when calling recvwith a large enough buffer will ... (microsoft.public.win32.programmer.networks) - Re: Socket Question
... Specifically i have recv() ... going round in a loop and i want to know if a buffer with less than ... is the end of a transmission? ... has a maximum packet size such that only 512 bytes of TCP data fit in ... (comp.unix.programmer) - Re: Network buffering question
... I hope this is the best newsgroup for this topic. ... single packet, because you might actually read past the packet you are ... Since you can tell recv() how much you ... There's nothing magic about having "twice" as large a buffer, but bigger is better if you care about performance. ... (comp.programming) - Re: Variable Length Packets
... > designated the first 2 bytes to state the size of the packet. ... when I try and change the buffer size to correspond to the ... The size argument to readonly specifies a ... You could use recv() ... (comp.unix.programmer) |
|