Re: Function: int recv (Socket, Buffer,Length, Flags) is returning
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Unix and Linux reviews > Free Unix support > Unix Programming > Re: Function: int recv (Socket, Buffer,Length, Flags) is returning




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

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


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
07-18-07 12:23 PM

* 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'





[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 09:25 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register