[cs631apue] HW4 setsockopt

Jan Schaumann jschauma at stevens.edu
Mon Nov 14 10:47:30 EST 2011


Rob Hoffmann <rhoffman at stevens.edu> wrote:

>> what is your opinion on using SO_REUSEADDR with setsockopt (as my
>> main does) to silence the "address already in use" error when the
>> program is rerun shortly after interruption? Is there a better way to go
>> about it (SIGINT handler?) or is this sufficient?

Your call:
http://www.unixguide.net/network/socketfaq/4.5.shtml

-Jan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 478 bytes
Desc: not available
URL: <http://lists.stevens.edu/pipermail/cs631apue/attachments/20111114/135252bc/attachment.pgp>


More information about the cs631apue mailing list