Skip to content

Commit

Permalink
Add SO_ACCEPTCONN SocketOption
Browse files Browse the repository at this point in the history
  • Loading branch information
shlevy committed Feb 7, 2022
1 parent 1432c01 commit 729f464
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Network/Socket/Options.hsc
Original file line number Diff line number Diff line change
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 729f464

Please sign in to comment.