|
10 | 10 | module Network.Socket.Options ( |
11 | 11 | SocketOption(SockOpt |
12 | 12 | ,UnsupportedSocketOption |
13 | | - ,Debug,ReuseAddr,SoDomain,Type,SoProtocol,SoError,DontRoute |
14 | | - ,Broadcast,SendBuffer,RecvBuffer,KeepAlive,OOBInline,TimeToLive |
15 | | - ,MaxSegment,NoDelay,Cork,Linger,ReusePort |
| 13 | + ,AcceptConn,Debug,ReuseAddr,SoDomain,Type,SoProtocol,SoError |
| 14 | + ,DontRoute,Broadcast,SendBuffer,RecvBuffer,KeepAlive,OOBInline |
| 15 | + ,TimeToLive,MaxSegment,NoDelay,Cork,Linger,ReusePort |
16 | 16 | ,RecvLowWater,SendLowWater,RecvTimeOut,SendTimeOut |
17 | 17 | ,UseLoopBack,UserTimeout,IPv6Only |
18 | 18 | ,RecvIPv4TTL,RecvIPv4TOS,RecvIPv4PktInfo |
@@ -69,6 +69,13 @@ pattern UnsupportedSocketOption :: SocketOption |
69 | 69 | pattern UnsupportedSocketOption = SockOpt (-1) (-1) |
70 | 70 |
|
71 | 71 | #ifdef SOL_SOCKET |
| 72 | +-- | SO_ACCEPTCONN, read-only |
| 73 | +pattern AcceptConn :: SocketOption |
| 74 | +#ifdef SO_ACCEPTCONN |
| 75 | +pattern AcceptConn = SockOpt (#const SOL_SOCKET) (#const SO_ACCEPTCONN) |
| 76 | +#else |
| 77 | +pattern AcceptConn = SockOpt (-1) (-1) |
| 78 | +#endif |
72 | 79 | -- | SO_DEBUG |
73 | 80 | pattern Debug :: SocketOption |
74 | 81 | #ifdef SO_DEBUG |
|
0 commit comments