mirror of
https://github.com/simplex-chat/simplexmq.git
synced 2026-10-28 16:32:20 +00:00
update header files
This commit is contained in:
1 parent
8fd4599f98
commit
3066f9b48d
1 file changed
+4
-4
@@ -6,13 +6,13 @@ module Simplex.Messaging.Transport.KeepAlive where
|
||||
import Foreign.C (CInt (..))
|
||||
import Network.Socket
|
||||
|
||||
foreign import capi "sys/socket.h value TCP_KEEPCNT" tcpKeepCnt :: CInt
|
||||
foreign import capi "netinet/tcp.h value TCP_KEEPCNT" tcpKeepCnt :: CInt
|
||||
|
||||
foreign import capi "sys/socket.h value TCP_KEEPIDLE" tcpKeepIdle :: CInt
|
||||
foreign import capi "netinet/tcp.h value TCP_KEEPIDLE" tcpKeepIdle :: CInt
|
||||
|
||||
foreign import capi "sys/socket.h value TCP_KEEPINTVL" tcpKeepIntvl :: CInt
|
||||
foreign import capi "netinet/tcp.h value TCP_KEEPINTVL" tcpKeepIntvl :: CInt
|
||||
|
||||
foreign import capi "sys/socket.h value SOL_TCP" solTcp :: CInt
|
||||
foreign import capi "netinet/tcp.h value SOL_TCP" solTcp :: CInt
|
||||
|
||||
data KeepAliveOpts = KeepAliveOpts
|
||||
{ keepCnt :: Int,
|
||||
|
||||
Reference in new issue
Block a user