For Programmers: Free Programming 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, 4:16 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







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com