Skip to content

Commit

Permalink
Merge PR #524
Browse files Browse the repository at this point in the history
  • Loading branch information
kazu-yamamoto committed Feb 10, 2022
2 parents 1432c01 + 49357da commit 472f292
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions Network/Socket/Options.hsc
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
module Network.Socket.Options (
SocketOption(SockOpt
,UnsupportedSocketOption
,Debug,ReuseAddr,SoDomain,Type,SoProtocol,SoError,DontRoute
,Broadcast,SendBuffer,RecvBuffer,KeepAlive,OOBInline,TimeToLive
,MaxSegment,NoDelay,Cork,Linger,ReusePort
,AcceptConn,Debug,ReuseAddr,SoDomain,Type,SoProtocol,SoError
,DontRoute,Broadcast,SendBuffer,RecvBuffer,KeepAlive,OOBInline
,TimeToLive,MaxSegment,NoDelay,Cork,Linger,ReusePort
,RecvLowWater,SendLowWater,RecvTimeOut,SendTimeOut
,UseLoopBack,UserTimeout,IPv6Only
,RecvIPv4TTL,RecvIPv4TOS,RecvIPv4PktInfo
Expand Down Expand Up @@ -69,6 +69,13 @@ pattern UnsupportedSocketOption :: SocketOption
pattern UnsupportedSocketOption = SockOpt (-1) (-1)

#ifdef SOL_SOCKET
-- | SO_ACCEPTCONN, read-only
pattern AcceptConn :: SocketOption
#ifdef SO_ACCEPTCONN
pattern AcceptConn = SockOpt (#const SOL_SOCKET) (#const SO_ACCEPTCONN)
#else
pattern AcceptConn = SockOpt (-1) (-1)
#endif
-- | SO_DEBUG
pattern Debug :: SocketOption
#ifdef SO_DEBUG
Expand Down

0 comments on commit 472f292

Please sign in to comment.