According the doc, send() api returns the number of bytes sent to the host upon successful execution. A -1 is returned when error encounter. When -1 is returned, you will need to call strerror to get the actual error message.

Check the value of the 3rd parameter when calling send() api. This value tells send() api how many bytes to send to the host.

ssize_t send(int socket, const void *buffer, size_t length, int flags);

"Bill Wragg" <bill_wragg@xxxxxxxx> wrote in message news:<mailman.6659.1219844733.2545.rpg400-l@xxxxxxxxxxxx>...
I the sockets programming, we are getting a return value on the send() api of 16,777,216. we are not sure what this is trying to tell us.

Can anybody clue me in on what this means? TCPIP down? No communication with client ?

(All in favour of saving gas, raise your right foot!)

Yahoo! Canada Toolbar: Search from anywhere on the web, and bookmark your favourite sites. Download it now at

This thread ...

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2019 by and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].