[e2e] doub regarding handling socket write errors
Joe Touch
touch at ISI.EDU
Sun Oct 16 11:21:07 PDT 2005
MEENA SELVAM wrote:
> In one of the socket tutorials, , it was mentioned
> when socket write errors are involved, perror can be
> called and the program can be exited.
>
> I also read when a system call fails, the progra will
> exit.
>
> In my situation, I have a main program which creates
> threads. If socket write error happens in the sub
> threads, I do not want to exit the main program,
> basically I need to reconnect to the server when
> socket write/read error happens.
>
> so what should I do?
Forward this query to another list, because this is off-topic for this
list. Please see our website for the purpose and topics that are
appropriate for this list.
Joe (as list admin)
>
> is there a signal that is generated upon a socket
> write error? Should I catch that signal and try to
> reconnect instead of exiting. How can I handle socket
> write errors in my own way?
>
> meena
>
>
>
>
>
> __________________________________
> Yahoo! Music Unlimited
> Access over 1 million songs. Try it free.
> http://music.yahoo.com/unlimited/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 254 bytes
Desc: OpenPGP digital signature
Url : http://www.postel.org/pipermail/end2end-interest/attachments/20051016/6d052768/signature.bin
More information about the end2end-interest
mailing list