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 ?
Thnx
Bill
(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
http://ca.toolbar.yahoo.com.
----------
As an Amazon Associate we earn from qualifying purchases.