Commit 47dbb7c
committed
Add SO_REUSEPORT support for macOS/BSD NetSIO compatibility
On macOS and BSD systems, SO_REUSEPORT is required for multiple processes
to bind to the same UDP port (9997 for NetSIO). Without this flag, only
the first process to bind succeeds, preventing bidirectional NetSIO
communication.
This change:
- Adds SO_REUSEPORT socket option for macOS/BSD builds
- Maintains compatibility with existing code (guarded by #ifdef)
- Uses standard #ifdef SO_REUSEPORT guard for automatic platform detection - no build system changes required. Works on macOS, BSD, and modern Linux.
- Enables proper NetSIO operation when emulator and FujiNet-PC both need to bind to port 99971 parent 571e594 commit 47dbb7c
1 file changed
+8
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
102 | 110 | | |
103 | 111 | | |
104 | 112 | | |
| |||
0 commit comments