This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

How to check the buffer size of the underlying protocol.

Hello There:

I'm trying to send data through a socket using UDP, however when I try to send more than 1500 bytes, the EMSGSIZE error is generated.

How can I get and how I can modify this buffer size?

I have been using getsockopt() , setsockopt() and SO_SNDBUF with no success.

Any help would be very appreciated.

Gabriel.