Unix Programming - Re: Function: int recv (Socket, Buffer,Length, Flags) is returning

This is Interesting: Free IT Magazines  
Home > Archive > Unix Programming > July 2007 > Re: Function: int recv (Socket, Buffer,Length, Flags) is returning





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Re: Function: int recv (Socket, Buffer,Length, Flags) is returning
Ralf Fassel

2007-07-18, 7:23 am

* monty <manishgandhi13@gmail.com>
| I am facing a problem when a call made to the socket function
| recv. It is returning with the error number 4(EINTR).

man recv(2)
....
RETURN VALUE
These calls return the number of bytes received, or -1 if an
error occurred.

You should check errno only if recv returns -1. Is that what you do?
If the _recv_ call returns 4, it has received 4 Bytes.

R'
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com