sockpp icon indicating copy to clipboard operation
sockpp copied to clipboard

SO_REUSEADDR

Open sheinb opened this issue 1 year ago • 3 comments

From what I can tell, the default for tcp acceptors is now to not reuse addresses but there is a possibility of passing this as a parameter. I can't quite get this to work, though. The examples, using the constructor with "ec" passed, work fine, but if I try the alternate, with the last argument specified as the reuse argument (1?) I get compiler errors. Is there a working example using this option (or can I set REUSEADDR another way)?

sheinb avatar Feb 25 '24 20:02 sheinb