Copyright | Will Thompson, Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria (garetxe@gmail.com) |
Safe Haskell | None |
Language | Haskell2010 |
- Exported types
- Methods
- socketAccept
- socketBind
- socketCheckConnectResult
- socketClose
- socketConditionCheck
- socketConditionTimedWait
- socketConditionWait
- socketConnect
- socketConnectionFactoryCreateConnection
- socketGetAvailableBytes
- socketGetBlocking
- socketGetBroadcast
- socketGetCredentials
- socketGetFamily
- socketGetFd
- socketGetKeepalive
- socketGetListenBacklog
- socketGetLocalAddress
- socketGetMulticastLoopback
- socketGetMulticastTtl
- socketGetOption
- socketGetProtocol
- socketGetRemoteAddress
- socketGetSocketType
- socketGetTimeout
- socketGetTtl
- socketIsClosed
- socketIsConnected
- socketJoinMulticastGroup
- socketLeaveMulticastGroup
- socketListen
- socketNew
- socketNewFromFd
- socketReceive
- socketReceiveFrom
- socketReceiveMessage
- socketReceiveWithBlocking
- socketSend
- socketSendMessage
- socketSendMessages
- socketSendTo
- socketSendWithBlocking
- socketSetBlocking
- socketSetBroadcast
- socketSetKeepalive
- socketSetListenBacklog
- socketSetMulticastLoopback
- socketSetMulticastTtl
- socketSetOption
- socketSetTimeout
- socketSetTtl
- socketShutdown
- socketSpeaksIpv4
- Properties
- newtype Socket = Socket (ForeignPtr Socket)
- class GObject o => SocketK o
- toSocket :: SocketK o => o -> IO Socket
- noSocket :: Maybe Socket
- socketAccept :: (MonadIO m, SocketK a, CancellableK b) => a -> Maybe b -> m Socket
- socketBind :: (MonadIO m, SocketK a, SocketAddressK b) => a -> b -> Bool -> m ()
- socketCheckConnectResult :: (MonadIO m, SocketK a) => a -> m ()
- socketClose :: (MonadIO m, SocketK a) => a -> m ()
- socketConditionCheck :: (MonadIO m, SocketK a) => a -> [IOCondition] -> m [IOCondition]
- socketConditionTimedWait :: (MonadIO m, SocketK a, CancellableK b) => a -> [IOCondition] -> Int64 -> Maybe b -> m ()
- socketConditionWait :: (MonadIO m, SocketK a, CancellableK b) => a -> [IOCondition] -> Maybe b -> m ()
- socketConnect :: (MonadIO m, SocketK a, SocketAddressK b, CancellableK c) => a -> b -> Maybe c -> m ()
- socketConnectionFactoryCreateConnection :: (MonadIO m, SocketK a) => a -> m SocketConnection
- socketGetAvailableBytes :: (MonadIO m, SocketK a) => a -> m Int64
- socketGetBlocking :: (MonadIO m, SocketK a) => a -> m Bool
- socketGetBroadcast :: (MonadIO m, SocketK a) => a -> m Bool
- socketGetCredentials :: (MonadIO m, SocketK a) => a -> m Credentials
- socketGetFamily :: (MonadIO m, SocketK a) => a -> m SocketFamily
- socketGetFd :: (MonadIO m, SocketK a) => a -> m Int32
- socketGetKeepalive :: (MonadIO m, SocketK a) => a -> m Bool
- socketGetListenBacklog :: (MonadIO m, SocketK a) => a -> m Int32
- socketGetLocalAddress :: (MonadIO m, SocketK a) => a -> m SocketAddress
- socketGetMulticastLoopback :: (MonadIO m, SocketK a) => a -> m Bool
- socketGetMulticastTtl :: (MonadIO m, SocketK a) => a -> m Word32
- socketGetOption :: (MonadIO m, SocketK a) => a -> Int32 -> Int32 -> m Int32
- socketGetProtocol :: (MonadIO m, SocketK a) => a -> m SocketProtocol
- socketGetRemoteAddress :: (MonadIO m, SocketK a) => a -> m SocketAddress
- socketGetSocketType :: (MonadIO m, SocketK a) => a -> m SocketType
- socketGetTimeout :: (MonadIO m, SocketK a) => a -> m Word32
- socketGetTtl :: (MonadIO m, SocketK a) => a -> m Word32
- socketIsClosed :: (MonadIO m, SocketK a) => a -> m Bool
- socketIsConnected :: (MonadIO m, SocketK a) => a -> m Bool
- socketJoinMulticastGroup :: (MonadIO m, SocketK a, InetAddressK b) => a -> b -> Bool -> Maybe Text -> m ()
- socketLeaveMulticastGroup :: (MonadIO m, SocketK a, InetAddressK b) => a -> b -> Bool -> Maybe Text -> m ()
- socketListen :: (MonadIO m, SocketK a) => a -> m ()
- socketNew :: MonadIO m => SocketFamily -> SocketType -> SocketProtocol -> m Socket
- socketNewFromFd :: MonadIO m => Int32 -> m Socket
- socketReceive :: (MonadIO m, SocketK a, CancellableK b) => a -> ByteString -> Maybe b -> m Int64
- socketReceiveFrom :: (MonadIO m, SocketK a, CancellableK b) => a -> ByteString -> Maybe b -> m (Int64, SocketAddress)
- socketReceiveMessage :: (MonadIO m, SocketK a, CancellableK b) => a -> [InputVector] -> Maybe [SocketControlMessage] -> Int32 -> Maybe b -> m (Int64, SocketAddress)
- socketReceiveWithBlocking :: (MonadIO m, SocketK a, CancellableK b) => a -> ByteString -> Bool -> Maybe b -> m Int64
- socketSend :: (MonadIO m, SocketK a, CancellableK b) => a -> ByteString -> Maybe b -> m Int64
- socketSendMessage :: (MonadIO m, SocketK a, SocketAddressK b, CancellableK c) => a -> Maybe b -> [OutputVector] -> Maybe [SocketControlMessage] -> Int32 -> Maybe c -> m Int64
- socketSendMessages :: (MonadIO m, SocketK a, CancellableK b) => a -> [OutputMessage] -> Int32 -> Maybe b -> m Int32
- socketSendTo :: (MonadIO m, SocketK a, SocketAddressK b, CancellableK c) => a -> Maybe b -> ByteString -> Maybe c -> m Int64
- socketSendWithBlocking :: (MonadIO m, SocketK a, CancellableK b) => a -> ByteString -> Bool -> Maybe b -> m Int64
- socketSetBlocking :: (MonadIO m, SocketK a) => a -> Bool -> m ()
- socketSetBroadcast :: (MonadIO m, SocketK a) => a -> Bool -> m ()
- socketSetKeepalive :: (MonadIO m, SocketK a) => a -> Bool -> m ()
- socketSetListenBacklog :: (MonadIO m, SocketK a) => a -> Int32 -> m ()
- socketSetMulticastLoopback :: (MonadIO m, SocketK a) => a -> Bool -> m ()
- socketSetMulticastTtl :: (MonadIO m, SocketK a) => a -> Word32 -> m ()
- socketSetOption :: (MonadIO m, SocketK a) => a -> Int32 -> Int32 -> Int32 -> m ()
- socketSetTimeout :: (MonadIO m, SocketK a) => a -> Word32 -> m ()
- socketSetTtl :: (MonadIO m, SocketK a) => a -> Word32 -> m ()
- socketShutdown :: (MonadIO m, SocketK a) => a -> Bool -> Bool -> m ()
- socketSpeaksIpv4 :: (MonadIO m, SocketK a) => a -> m Bool
- data SocketBlockingPropertyInfo
- constructSocketBlocking :: Bool -> IO ([Char], GValue)
- getSocketBlocking :: (MonadIO m, SocketK o) => o -> m Bool
- setSocketBlocking :: (MonadIO m, SocketK o) => o -> Bool -> m ()
- data SocketBroadcastPropertyInfo
- constructSocketBroadcast :: Bool -> IO ([Char], GValue)
- getSocketBroadcast :: (MonadIO m, SocketK o) => o -> m Bool
- setSocketBroadcast :: (MonadIO m, SocketK o) => o -> Bool -> m ()
- data SocketFamilyPropertyInfo
- constructSocketFamily :: SocketFamily -> IO ([Char], GValue)
- getSocketFamily :: (MonadIO m, SocketK o) => o -> m SocketFamily
- data SocketFdPropertyInfo
- constructSocketFd :: Int32 -> IO ([Char], GValue)
- getSocketFd :: (MonadIO m, SocketK o) => o -> m Int32
- data SocketKeepalivePropertyInfo
- constructSocketKeepalive :: Bool -> IO ([Char], GValue)
- getSocketKeepalive :: (MonadIO m, SocketK o) => o -> m Bool
- setSocketKeepalive :: (MonadIO m, SocketK o) => o -> Bool -> m ()
- data SocketListenBacklogPropertyInfo
- constructSocketListenBacklog :: Int32 -> IO ([Char], GValue)
- getSocketListenBacklog :: (MonadIO m, SocketK o) => o -> m Int32
- setSocketListenBacklog :: (MonadIO m, SocketK o) => o -> Int32 -> m ()
- data SocketLocalAddressPropertyInfo
- getSocketLocalAddress :: (MonadIO m, SocketK o) => o -> m SocketAddress
- data SocketMulticastLoopbackPropertyInfo
- constructSocketMulticastLoopback :: Bool -> IO ([Char], GValue)
- getSocketMulticastLoopback :: (MonadIO m, SocketK o) => o -> m Bool
- setSocketMulticastLoopback :: (MonadIO m, SocketK o) => o -> Bool -> m ()
- data SocketMulticastTtlPropertyInfo
- constructSocketMulticastTtl :: Word32 -> IO ([Char], GValue)
- getSocketMulticastTtl :: (MonadIO m, SocketK o) => o -> m Word32
- setSocketMulticastTtl :: (MonadIO m, SocketK o) => o -> Word32 -> m ()
- data SocketProtocolPropertyInfo
- constructSocketProtocol :: SocketProtocol -> IO ([Char], GValue)
- getSocketProtocol :: (MonadIO m, SocketK o) => o -> m SocketProtocol
- data SocketRemoteAddressPropertyInfo
- getSocketRemoteAddress :: (MonadIO m, SocketK o) => o -> m SocketAddress
- data SocketTimeoutPropertyInfo
- constructSocketTimeout :: Word32 -> IO ([Char], GValue)
- getSocketTimeout :: (MonadIO m, SocketK o) => o -> m Word32
- setSocketTimeout :: (MonadIO m, SocketK o) => o -> Word32 -> m ()
- data SocketTtlPropertyInfo
- constructSocketTtl :: Word32 -> IO ([Char], GValue)
- getSocketTtl :: (MonadIO m, SocketK o) => o -> m Word32
- setSocketTtl :: (MonadIO m, SocketK o) => o -> Word32 -> m ()
- data SocketTypePropertyInfo
- constructSocketType :: SocketType -> IO ([Char], GValue)
- getSocketType :: (MonadIO m, SocketK o) => o -> m SocketType
Exported types
GObject Socket Source | |
type ParentTypes Socket Source | |
type AttributeList Socket Source | |
type SignalList Socket Source |
Methods
socketAccept
socketAccept :: (MonadIO m, SocketK a, CancellableK b) => a -> Maybe b -> m Socket Source
socketBind
socketBind :: (MonadIO m, SocketK a, SocketAddressK b) => a -> b -> Bool -> m () Source
socketCheckConnectResult
socketCheckConnectResult :: (MonadIO m, SocketK a) => a -> m () Source
socketClose
socketClose :: (MonadIO m, SocketK a) => a -> m () Source
socketConditionCheck
socketConditionCheck :: (MonadIO m, SocketK a) => a -> [IOCondition] -> m [IOCondition] Source
socketConditionTimedWait
socketConditionTimedWait :: (MonadIO m, SocketK a, CancellableK b) => a -> [IOCondition] -> Int64 -> Maybe b -> m () Source
socketConditionWait
socketConditionWait :: (MonadIO m, SocketK a, CancellableK b) => a -> [IOCondition] -> Maybe b -> m () Source
socketConnect
socketConnect :: (MonadIO m, SocketK a, SocketAddressK b, CancellableK c) => a -> b -> Maybe c -> m () Source
socketConnectionFactoryCreateConnection
socketConnectionFactoryCreateConnection :: (MonadIO m, SocketK a) => a -> m SocketConnection Source
socketGetAvailableBytes
socketGetAvailableBytes :: (MonadIO m, SocketK a) => a -> m Int64 Source
socketGetBlocking
socketGetBlocking :: (MonadIO m, SocketK a) => a -> m Bool Source
socketGetBroadcast
socketGetBroadcast :: (MonadIO m, SocketK a) => a -> m Bool Source
socketGetCredentials
socketGetCredentials :: (MonadIO m, SocketK a) => a -> m Credentials Source
socketGetFamily
socketGetFamily :: (MonadIO m, SocketK a) => a -> m SocketFamily Source
socketGetFd
socketGetFd :: (MonadIO m, SocketK a) => a -> m Int32 Source
socketGetKeepalive
socketGetKeepalive :: (MonadIO m, SocketK a) => a -> m Bool Source
socketGetListenBacklog
socketGetListenBacklog :: (MonadIO m, SocketK a) => a -> m Int32 Source
socketGetLocalAddress
socketGetLocalAddress :: (MonadIO m, SocketK a) => a -> m SocketAddress Source
socketGetMulticastLoopback
socketGetMulticastLoopback :: (MonadIO m, SocketK a) => a -> m Bool Source
socketGetMulticastTtl
socketGetMulticastTtl :: (MonadIO m, SocketK a) => a -> m Word32 Source
socketGetOption
socketGetProtocol
socketGetProtocol :: (MonadIO m, SocketK a) => a -> m SocketProtocol Source
socketGetRemoteAddress
socketGetRemoteAddress :: (MonadIO m, SocketK a) => a -> m SocketAddress Source
socketGetSocketType
socketGetSocketType :: (MonadIO m, SocketK a) => a -> m SocketType Source
socketGetTimeout
socketGetTimeout :: (MonadIO m, SocketK a) => a -> m Word32 Source
socketGetTtl
socketGetTtl :: (MonadIO m, SocketK a) => a -> m Word32 Source
socketIsClosed
socketIsClosed :: (MonadIO m, SocketK a) => a -> m Bool Source
socketIsConnected
socketIsConnected :: (MonadIO m, SocketK a) => a -> m Bool Source
socketJoinMulticastGroup
socketJoinMulticastGroup :: (MonadIO m, SocketK a, InetAddressK b) => a -> b -> Bool -> Maybe Text -> m () Source
socketLeaveMulticastGroup
socketLeaveMulticastGroup :: (MonadIO m, SocketK a, InetAddressK b) => a -> b -> Bool -> Maybe Text -> m () Source
socketListen
socketListen :: (MonadIO m, SocketK a) => a -> m () Source
socketNew
socketNew :: MonadIO m => SocketFamily -> SocketType -> SocketProtocol -> m Socket Source
socketNewFromFd
socketNewFromFd :: MonadIO m => Int32 -> m Socket Source
socketReceive
socketReceive :: (MonadIO m, SocketK a, CancellableK b) => a -> ByteString -> Maybe b -> m Int64 Source
socketReceiveFrom
socketReceiveFrom :: (MonadIO m, SocketK a, CancellableK b) => a -> ByteString -> Maybe b -> m (Int64, SocketAddress) Source
socketReceiveMessage
socketReceiveMessage :: (MonadIO m, SocketK a, CancellableK b) => a -> [InputVector] -> Maybe [SocketControlMessage] -> Int32 -> Maybe b -> m (Int64, SocketAddress) Source
socketReceiveWithBlocking
socketReceiveWithBlocking :: (MonadIO m, SocketK a, CancellableK b) => a -> ByteString -> Bool -> Maybe b -> m Int64 Source
socketSend
socketSend :: (MonadIO m, SocketK a, CancellableK b) => a -> ByteString -> Maybe b -> m Int64 Source
socketSendMessage
socketSendMessage :: (MonadIO m, SocketK a, SocketAddressK b, CancellableK c) => a -> Maybe b -> [OutputVector] -> Maybe [SocketControlMessage] -> Int32 -> Maybe c -> m Int64 Source
socketSendMessages
socketSendMessages :: (MonadIO m, SocketK a, CancellableK b) => a -> [OutputMessage] -> Int32 -> Maybe b -> m Int32 Source
socketSendTo
socketSendTo :: (MonadIO m, SocketK a, SocketAddressK b, CancellableK c) => a -> Maybe b -> ByteString -> Maybe c -> m Int64 Source
socketSendWithBlocking
socketSendWithBlocking :: (MonadIO m, SocketK a, CancellableK b) => a -> ByteString -> Bool -> Maybe b -> m Int64 Source
socketSetBlocking
socketSetBlocking :: (MonadIO m, SocketK a) => a -> Bool -> m () Source
socketSetBroadcast
socketSetBroadcast :: (MonadIO m, SocketK a) => a -> Bool -> m () Source
socketSetKeepalive
socketSetKeepalive :: (MonadIO m, SocketK a) => a -> Bool -> m () Source
socketSetListenBacklog
socketSetListenBacklog :: (MonadIO m, SocketK a) => a -> Int32 -> m () Source
socketSetMulticastLoopback
socketSetMulticastLoopback :: (MonadIO m, SocketK a) => a -> Bool -> m () Source
socketSetMulticastTtl
socketSetMulticastTtl :: (MonadIO m, SocketK a) => a -> Word32 -> m () Source
socketSetOption
socketSetTimeout
socketSetTimeout :: (MonadIO m, SocketK a) => a -> Word32 -> m () Source
socketSetTtl
socketSetTtl :: (MonadIO m, SocketK a) => a -> Word32 -> m () Source
socketShutdown
socketSpeaksIpv4
socketSpeaksIpv4 :: (MonadIO m, SocketK a) => a -> m Bool Source
Properties
Blocking
data SocketBlockingPropertyInfo Source
AttrInfo SocketBlockingPropertyInfo Source | |
type AttrLabel SocketBlockingPropertyInfo = "Socket::blocking" Source | |
type AttrGetType SocketBlockingPropertyInfo = Bool Source | |
type AttrBaseTypeConstraint SocketBlockingPropertyInfo = SocketK Source | |
type AttrSetTypeConstraint SocketBlockingPropertyInfo = * ~ Bool Source | |
type AttrAllowedOps SocketBlockingPropertyInfo = (:) AttrOpTag AttrSet ((:) AttrOpTag AttrConstruct ((:) AttrOpTag AttrGet ([] AttrOpTag))) Source |
getSocketBlocking :: (MonadIO m, SocketK o) => o -> m Bool Source
setSocketBlocking :: (MonadIO m, SocketK o) => o -> Bool -> m () Source
Broadcast
data SocketBroadcastPropertyInfo Source
AttrInfo SocketBroadcastPropertyInfo Source | |
type AttrLabel SocketBroadcastPropertyInfo = "Socket::broadcast" Source | |
type AttrGetType SocketBroadcastPropertyInfo = Bool Source | |
type AttrBaseTypeConstraint SocketBroadcastPropertyInfo = SocketK Source | |
type AttrSetTypeConstraint SocketBroadcastPropertyInfo = * ~ Bool Source | |
type AttrAllowedOps SocketBroadcastPropertyInfo = (:) AttrOpTag AttrSet ((:) AttrOpTag AttrConstruct ((:) AttrOpTag AttrGet ([] AttrOpTag))) Source |
getSocketBroadcast :: (MonadIO m, SocketK o) => o -> m Bool Source
setSocketBroadcast :: (MonadIO m, SocketK o) => o -> Bool -> m () Source
Family
data SocketFamilyPropertyInfo Source
AttrInfo SocketFamilyPropertyInfo Source | |
type AttrLabel SocketFamilyPropertyInfo = "Socket::family" Source | |
type AttrGetType SocketFamilyPropertyInfo = SocketFamily Source | |
type AttrBaseTypeConstraint SocketFamilyPropertyInfo = SocketK Source | |
type AttrSetTypeConstraint SocketFamilyPropertyInfo = * ~ SocketFamily Source | |
type AttrAllowedOps SocketFamilyPropertyInfo = (:) AttrOpTag AttrConstruct ((:) AttrOpTag AttrGet ([] AttrOpTag)) Source |
constructSocketFamily :: SocketFamily -> IO ([Char], GValue) Source
getSocketFamily :: (MonadIO m, SocketK o) => o -> m SocketFamily Source
Fd
data SocketFdPropertyInfo Source
AttrInfo SocketFdPropertyInfo Source | |
type AttrLabel SocketFdPropertyInfo = "Socket::fd" Source | |
type AttrGetType SocketFdPropertyInfo = Int32 Source | |
type AttrBaseTypeConstraint SocketFdPropertyInfo = SocketK Source | |
type AttrSetTypeConstraint SocketFdPropertyInfo = * ~ Int32 Source | |
type AttrAllowedOps SocketFdPropertyInfo = (:) AttrOpTag AttrConstruct ((:) AttrOpTag AttrGet ([] AttrOpTag)) Source |
getSocketFd :: (MonadIO m, SocketK o) => o -> m Int32 Source
Keepalive
data SocketKeepalivePropertyInfo Source
AttrInfo SocketKeepalivePropertyInfo Source | |
type AttrLabel SocketKeepalivePropertyInfo = "Socket::keepalive" Source | |
type AttrGetType SocketKeepalivePropertyInfo = Bool Source | |
type AttrBaseTypeConstraint SocketKeepalivePropertyInfo = SocketK Source | |
type AttrSetTypeConstraint SocketKeepalivePropertyInfo = * ~ Bool Source | |
type AttrAllowedOps SocketKeepalivePropertyInfo = (:) AttrOpTag AttrSet ((:) AttrOpTag AttrConstruct ((:) AttrOpTag AttrGet ([] AttrOpTag))) Source |
getSocketKeepalive :: (MonadIO m, SocketK o) => o -> m Bool Source
setSocketKeepalive :: (MonadIO m, SocketK o) => o -> Bool -> m () Source
ListenBacklog
data SocketListenBacklogPropertyInfo Source
AttrInfo SocketListenBacklogPropertyInfo Source | |
type AttrLabel SocketListenBacklogPropertyInfo = "Socket::listen-backlog" Source | |
type AttrGetType SocketListenBacklogPropertyInfo = Int32 Source | |
type AttrBaseTypeConstraint SocketListenBacklogPropertyInfo = SocketK Source | |
type AttrSetTypeConstraint SocketListenBacklogPropertyInfo = * ~ Int32 Source | |
type AttrAllowedOps SocketListenBacklogPropertyInfo = (:) AttrOpTag AttrSet ((:) AttrOpTag AttrConstruct ((:) AttrOpTag AttrGet ([] AttrOpTag))) Source |
getSocketListenBacklog :: (MonadIO m, SocketK o) => o -> m Int32 Source
setSocketListenBacklog :: (MonadIO m, SocketK o) => o -> Int32 -> m () Source
LocalAddress
data SocketLocalAddressPropertyInfo Source
AttrInfo SocketLocalAddressPropertyInfo Source | |
type AttrLabel SocketLocalAddressPropertyInfo = "Socket::local-address" Source | |
type AttrGetType SocketLocalAddressPropertyInfo = SocketAddress Source | |
type AttrBaseTypeConstraint SocketLocalAddressPropertyInfo = SocketK Source | |
type AttrSetTypeConstraint SocketLocalAddressPropertyInfo = * ~ () Source | |
type AttrAllowedOps SocketLocalAddressPropertyInfo = (:) AttrOpTag AttrGet ([] AttrOpTag) Source |
getSocketLocalAddress :: (MonadIO m, SocketK o) => o -> m SocketAddress Source
MulticastLoopback
data SocketMulticastLoopbackPropertyInfo Source
AttrInfo SocketMulticastLoopbackPropertyInfo Source | |
type AttrLabel SocketMulticastLoopbackPropertyInfo = "Socket::multicast-loopback" Source | |
type AttrGetType SocketMulticastLoopbackPropertyInfo = Bool Source | |
type AttrBaseTypeConstraint SocketMulticastLoopbackPropertyInfo = SocketK Source | |
type AttrSetTypeConstraint SocketMulticastLoopbackPropertyInfo = * ~ Bool Source | |
type AttrAllowedOps SocketMulticastLoopbackPropertyInfo = (:) AttrOpTag AttrSet ((:) AttrOpTag AttrConstruct ((:) AttrOpTag AttrGet ([] AttrOpTag))) Source |
getSocketMulticastLoopback :: (MonadIO m, SocketK o) => o -> m Bool Source
setSocketMulticastLoopback :: (MonadIO m, SocketK o) => o -> Bool -> m () Source
MulticastTtl
data SocketMulticastTtlPropertyInfo Source
AttrInfo SocketMulticastTtlPropertyInfo Source | |
type AttrLabel SocketMulticastTtlPropertyInfo = "Socket::multicast-ttl" Source | |
type AttrGetType SocketMulticastTtlPropertyInfo = Word32 Source | |
type AttrBaseTypeConstraint SocketMulticastTtlPropertyInfo = SocketK Source | |
type AttrSetTypeConstraint SocketMulticastTtlPropertyInfo = * ~ Word32 Source | |
type AttrAllowedOps SocketMulticastTtlPropertyInfo = (:) AttrOpTag AttrSet ((:) AttrOpTag AttrConstruct ((:) AttrOpTag AttrGet ([] AttrOpTag))) Source |
getSocketMulticastTtl :: (MonadIO m, SocketK o) => o -> m Word32 Source
setSocketMulticastTtl :: (MonadIO m, SocketK o) => o -> Word32 -> m () Source
Protocol
data SocketProtocolPropertyInfo Source
AttrInfo SocketProtocolPropertyInfo Source | |
type AttrLabel SocketProtocolPropertyInfo = "Socket::protocol" Source | |
type AttrGetType SocketProtocolPropertyInfo = SocketProtocol Source | |
type AttrBaseTypeConstraint SocketProtocolPropertyInfo = SocketK Source | |
type AttrSetTypeConstraint SocketProtocolPropertyInfo = * ~ SocketProtocol Source | |
type AttrAllowedOps SocketProtocolPropertyInfo = (:) AttrOpTag AttrConstruct ((:) AttrOpTag AttrGet ([] AttrOpTag)) Source |
constructSocketProtocol :: SocketProtocol -> IO ([Char], GValue) Source
getSocketProtocol :: (MonadIO m, SocketK o) => o -> m SocketProtocol Source
RemoteAddress
data SocketRemoteAddressPropertyInfo Source
AttrInfo SocketRemoteAddressPropertyInfo Source | |
type AttrLabel SocketRemoteAddressPropertyInfo = "Socket::remote-address" Source | |
type AttrGetType SocketRemoteAddressPropertyInfo = SocketAddress Source | |
type AttrBaseTypeConstraint SocketRemoteAddressPropertyInfo = SocketK Source | |
type AttrSetTypeConstraint SocketRemoteAddressPropertyInfo = * ~ () Source | |
type AttrAllowedOps SocketRemoteAddressPropertyInfo = (:) AttrOpTag AttrGet ([] AttrOpTag) Source |
getSocketRemoteAddress :: (MonadIO m, SocketK o) => o -> m SocketAddress Source
Timeout
data SocketTimeoutPropertyInfo Source
AttrInfo SocketTimeoutPropertyInfo Source | |
type AttrLabel SocketTimeoutPropertyInfo = "Socket::timeout" Source | |
type AttrGetType SocketTimeoutPropertyInfo = Word32 Source | |
type AttrBaseTypeConstraint SocketTimeoutPropertyInfo = SocketK Source | |
type AttrSetTypeConstraint SocketTimeoutPropertyInfo = * ~ Word32 Source | |
type AttrAllowedOps SocketTimeoutPropertyInfo = (:) AttrOpTag AttrSet ((:) AttrOpTag AttrConstruct ((:) AttrOpTag AttrGet ([] AttrOpTag))) Source |
getSocketTimeout :: (MonadIO m, SocketK o) => o -> m Word32 Source
setSocketTimeout :: (MonadIO m, SocketK o) => o -> Word32 -> m () Source
Ttl
data SocketTtlPropertyInfo Source
AttrInfo SocketTtlPropertyInfo Source | |
type AttrLabel SocketTtlPropertyInfo = "Socket::ttl" Source | |
type AttrGetType SocketTtlPropertyInfo = Word32 Source | |
type AttrBaseTypeConstraint SocketTtlPropertyInfo = SocketK Source | |
type AttrSetTypeConstraint SocketTtlPropertyInfo = * ~ Word32 Source | |
type AttrAllowedOps SocketTtlPropertyInfo = (:) AttrOpTag AttrSet ((:) AttrOpTag AttrConstruct ((:) AttrOpTag AttrGet ([] AttrOpTag))) Source |
getSocketTtl :: (MonadIO m, SocketK o) => o -> m Word32 Source
setSocketTtl :: (MonadIO m, SocketK o) => o -> Word32 -> m () Source
Type
data SocketTypePropertyInfo Source
AttrInfo SocketTypePropertyInfo Source | |
type AttrLabel SocketTypePropertyInfo = "Socket::type" Source | |
type AttrGetType SocketTypePropertyInfo = SocketType Source | |
type AttrBaseTypeConstraint SocketTypePropertyInfo = SocketK Source | |
type AttrSetTypeConstraint SocketTypePropertyInfo = * ~ SocketType Source | |
type AttrAllowedOps SocketTypePropertyInfo = (:) AttrOpTag AttrConstruct ((:) AttrOpTag AttrGet ([] AttrOpTag)) Source |
constructSocketType :: SocketType -> IO ([Char], GValue) Source
getSocketType :: (MonadIO m, SocketK o) => o -> m SocketType Source