LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   sendmsg max size?? (https://www.linuxquestions.org/questions/linux-networking-3/sendmsg-max-size-198348/)

jwstric2 06-27-2004 01:53 PM

sendmsg max size??
 
From what I know, I thought the applications data it brokens into reasonable size msg and the lower layer. So if I wanted to send a data of 512KB this would be broken into 8 udp packets (if the network can support the maximum 64kb packets).

I have tried changing the socket's snd buffer to upwards of 2MB with setsockopt but still it refuses to send the messages. I need it to be udp and hopefuly stil use sendmsg because of its scatter, gather techniques. I am only using at most 2 args so I am not creating more than IOV_MAX args. Error is shown below as printed from perror.

_pSend (2): Message too long

The only other option I can think of would be to set the buffer to the max data size and recursively send the data. I should also note that I am dealing with asynchronous sockets.


OS INFO:
Fedora 1.


All times are GMT -5. The time now is 03:03 PM.