For Programmers: Free Programming Magazines  


Home > Archive > Unix Programming > July 2007 > Re: Function: int recv (Socket, Buffer,Length, Flags) is returning with the error num









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 with the error num
monty

2007-07-19, 8:07 am

On Jul 18, 12:55 pm, Ulrich Eckhardt <dooms...@knuut.de> wrote:
> monty wrote:
>
> If I remember correctly, this just means that while the system call was
> under way, your program received (and possibly handled) a signal and
> therefore the syscall was aborted without anything being done. Just retry
> the recv() and you should be fine.
>
> I'd be interested in the rationale to behave like that, i.e. why EINTR is
> provided/used at all, in this context or others.
>
> Uli


hi,

Even after retrying same error i am getting.


Ulrich Eckhardt

2007-07-19, 8:07 am

monty wrote:
[recv() / EINTR ]
> Even after retrying same error i am getting.


Did you read Ralf's advise? Can you show how you're using recv()? Are you
sure about the input values? "Doesn't work!" is not a useful error
description.

BTW: don't multipost like you did in c.p.t. and it wasn't exactly on-topic
there anyway.

Uli

Sponsored Links







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

Copyright 2008 codecomments.com