How come only the first part of my datagram is getting through?
Answer / chaitanya
This has to do with the maximum size of a datagram on the two machines involved. This depends on the sytems involved, and the MTU (Maximum Transmission Unit). According to "UNIX Network Programming", all TCP/IP implementations must support a minimum IP datagram size of 576 bytes, regardless of the MTU. Assuming a 20 byte IP header and 8 byte UDP header, this leaves 548 bytes as a safe maximum size for UDP messages. The maximum size is 65516 bytes. Some platforms support IP fragmentation which will allow datagrams to be broken up (because of MTU values) and then re-assembled on the other end, but not all implementations support this.
| Is This Answer Correct ? | 0 Yes | 0 No |
How do I send [this] over a socket?
How can I write a multi-homed server?
system choose one for me on the connect() call? Should I bind() a port number in my client program, or let the?
How can I listen on more than one port at a time?
Where is the socket located?
How can I force a socket to send the data in its buffer?
of the socket? Does doing a connect() call affect the receive behaviour?
If bind() fails, what should I do with the socket descriptor?
How does a socket work?
Why does it take so long to detect that the peer died?
When should I use UDP instead of TCP?
What are Sockets?