0

SO_REUSEPORT is deleted to make the example work on macOS.

Socket programming - setsockopt: Protocol not available?

But man setsockopt on macOS clearly document the option SO_REUSEPORT.

SO_REUSEPORT    enables duplicate address and port bindings

Why SO_REUSEPORT has to be removed to make the example? Is there a bug in setsockopt() on macOS? Where is the source code of setsockopt() on macOS?

user1424739
  • 7,204
  • 10
  • 38
  • 67

0 Answers0