Error Message:

WINSOCK Error: Message too long.

Explanation:

A message sent on a socket was larger than the internal message buffer or some other network limit. If the datagram you read is larger than the buffer you supplied, then WinSock truncates the datagram (that is copies what it can into your buffer) and fails the function. Using send() and sendto(), you cannot send a datagram as large as you've requested. Note that the WinSock specification does not explicitly state that this error occurs if the value you request is larger than the value of WSAData.iMaxUdpDg returned from WSAStartup(). Since the buffering requirements for sending datagrams are less than for receiving datagrams, it's conceivable that you can send a datagram larger than you can receive.

User Action:

No user action required.