can any body here tell me how to send datagram larger than system buffer supplied to UDP socket in order to test the MSG_TRANC in C
and how i can get the size of the socket buffer ?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You could always increase the buffer size with the
setsockoptfunction using theSO_SNDBUFflag.Otherwise
send(orsendto) will normally block.However, I would recommend you to try and rework your protocol so the packets fit inside the send buffer. You can always reassemble the packages when received (if you have proper sequencing of them).