Howdie,

Someone (i think it was Shachar) asked about shutdown and loosing messages - 
well, I jsut came across the SO_LINGER socket options (man 7 socket) and 
though it can help:

"       SO_LINGER
              Sets  or  gets  the  SO_LINGER  option. The argument is a linger
              structure.
                                                                                       
                                 
              struct linger {
                  int   l_onoff;    /* linger active */
                  int   l_linger;   /* how many seconds to linger for */
              };
                                                                                       
                                 
              When enabled, a close(2) or shutdown(2) will  not  return  until
              all  queued  messages for the socket have been successfully sent
              or the linger timeout has  been  reached.  Otherwise,  the  call
              returns  immediately  and the closing is done in the background.
              When the socket is closed as part of exit(2), it always  lingers
              in the background.
"

Cheers,
Gilad

-- 
Gilad Ben-Yossef <[EMAIL PROTECTED]>
Codefidence. A name you can trust(TM)
Tel: +972.9.8650475 ext. 201, Fax: +972.9.8850643
http://www.codefidence.com



=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]

Reply via email to