gi-gio-0.2.46.15: Gio bindings

CopyrightWill Thompson, Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria (garetxe@gmail.com)
Safe HaskellNone
LanguageHaskell2010

GI.Gio.Objects.Socket

Contents

Description

 

Synopsis

Exported types

newtype Socket Source

Constructors

Socket (ForeignPtr Socket) 

Instances

GObject Socket 
((~) * info (ResolveSocketMethod t Socket), MethodInfo * info Socket p) => IsLabelProxy t (Socket -> p) 
type ParentTypes Socket 
type AttributeList Socket 
type SignalList Socket 

class GObject o => SocketK o Source

Instances

Methods

socketAccept

data SocketAcceptMethodInfo Source

Instances

((~) * signature (Maybe b -> m Socket), MonadIO m, SocketK a, CancellableK b) => MethodInfo * SocketAcceptMethodInfo a signature 

socketBind

data SocketBindMethodInfo Source

Instances

((~) * signature (b -> Bool -> m ()), MonadIO m, SocketK a, SocketAddressK b) => MethodInfo * SocketBindMethodInfo a signature 

socketBind :: (MonadIO m, SocketK a, SocketAddressK b) => a -> b -> Bool -> m () Source

socketCheckConnectResult

data SocketCheckConnectResultMethodInfo Source

Instances

((~) * signature (m ()), MonadIO m, SocketK a) => MethodInfo * SocketCheckConnectResultMethodInfo a signature 

socketClose

data SocketCloseMethodInfo Source

Instances

((~) * signature (m ()), MonadIO m, SocketK a) => MethodInfo * SocketCloseMethodInfo a signature 

socketClose :: (MonadIO m, SocketK a) => a -> m () Source

socketConditionCheck

socketConditionTimedWait

data SocketConditionTimedWaitMethodInfo Source

Instances

((~) * signature ([IOCondition] -> Int64 -> Maybe b -> m ()), MonadIO m, SocketK a, CancellableK b) => MethodInfo * SocketConditionTimedWaitMethodInfo a signature 

socketConditionWait

data SocketConditionWaitMethodInfo Source

Instances

((~) * signature ([IOCondition] -> Maybe b -> m ()), MonadIO m, SocketK a, CancellableK b) => MethodInfo * SocketConditionWaitMethodInfo a signature 

socketConnect

data SocketConnectMethodInfo Source

Instances

((~) * signature (b -> Maybe c -> m ()), MonadIO m, SocketK a, SocketAddressK b, CancellableK c) => MethodInfo * SocketConnectMethodInfo a signature 

socketConnect :: (MonadIO m, SocketK a, SocketAddressK b, CancellableK c) => a -> b -> Maybe c -> m () Source

socketConnectionFactoryCreateConnection

socketGetAvailableBytes

socketGetBlocking

data SocketGetBlockingMethodInfo Source

Instances

((~) * signature (m Bool), MonadIO m, SocketK a) => MethodInfo * SocketGetBlockingMethodInfo a signature 

socketGetBroadcast

data SocketGetBroadcastMethodInfo Source

Instances

((~) * signature (m Bool), MonadIO m, SocketK a) => MethodInfo * SocketGetBroadcastMethodInfo a signature 

socketGetCredentials

socketGetFamily

data SocketGetFamilyMethodInfo Source

Instances

((~) * signature (m SocketFamily), MonadIO m, SocketK a) => MethodInfo * SocketGetFamilyMethodInfo a signature 

socketGetFd

data SocketGetFdMethodInfo Source

Instances

((~) * signature (m Int32), MonadIO m, SocketK a) => MethodInfo * SocketGetFdMethodInfo a signature 

socketGetFd :: (MonadIO m, SocketK a) => a -> m Int32 Source

socketGetKeepalive

data SocketGetKeepaliveMethodInfo Source

Instances

((~) * signature (m Bool), MonadIO m, SocketK a) => MethodInfo * SocketGetKeepaliveMethodInfo a signature 

socketGetListenBacklog

data SocketGetListenBacklogMethodInfo Source

Instances

((~) * signature (m Int32), MonadIO m, SocketK a) => MethodInfo * SocketGetListenBacklogMethodInfo a signature 

socketGetLocalAddress

socketGetMulticastLoopback

socketGetMulticastTtl

data SocketGetMulticastTtlMethodInfo Source

Instances

((~) * signature (m Word32), MonadIO m, SocketK a) => MethodInfo * SocketGetMulticastTtlMethodInfo a signature 

socketGetOption

data SocketGetOptionMethodInfo Source

Instances

((~) * signature (Int32 -> Int32 -> m Int32), MonadIO m, SocketK a) => MethodInfo * SocketGetOptionMethodInfo a signature 

socketGetProtocol

data SocketGetProtocolMethodInfo Source

Instances

((~) * signature (m SocketProtocol), MonadIO m, SocketK a) => MethodInfo * SocketGetProtocolMethodInfo a signature 

socketGetRemoteAddress

socketGetSocketType

data SocketGetSocketTypeMethodInfo Source

Instances

((~) * signature (m SocketType), MonadIO m, SocketK a) => MethodInfo * SocketGetSocketTypeMethodInfo a signature 

socketGetTimeout

data SocketGetTimeoutMethodInfo Source

Instances

((~) * signature (m Word32), MonadIO m, SocketK a) => MethodInfo * SocketGetTimeoutMethodInfo a signature 

socketGetTtl

data SocketGetTtlMethodInfo Source

Instances

((~) * signature (m Word32), MonadIO m, SocketK a) => MethodInfo * SocketGetTtlMethodInfo a signature 

socketIsClosed

data SocketIsClosedMethodInfo Source

Instances

((~) * signature (m Bool), MonadIO m, SocketK a) => MethodInfo * SocketIsClosedMethodInfo a signature 

socketIsConnected

data SocketIsConnectedMethodInfo Source

Instances

((~) * signature (m Bool), MonadIO m, SocketK a) => MethodInfo * SocketIsConnectedMethodInfo a signature 

socketJoinMulticastGroup

data SocketJoinMulticastGroupMethodInfo Source

Instances

((~) * signature (b -> Bool -> Maybe Text -> m ()), MonadIO m, SocketK a, InetAddressK b) => MethodInfo * SocketJoinMulticastGroupMethodInfo a signature 

socketLeaveMulticastGroup

data SocketLeaveMulticastGroupMethodInfo Source

Instances

((~) * signature (b -> Bool -> Maybe Text -> m ()), MonadIO m, SocketK a, InetAddressK b) => MethodInfo * SocketLeaveMulticastGroupMethodInfo a signature 

socketListen

data SocketListenMethodInfo Source

Instances

((~) * signature (m ()), MonadIO m, SocketK a) => MethodInfo * SocketListenMethodInfo a signature 

socketListen :: (MonadIO m, SocketK a) => a -> m () Source

socketNew

socketNewFromFd

socketReceive

data SocketReceiveMethodInfo Source

Instances

((~) * signature (ByteString -> Maybe b -> m Int64), MonadIO m, SocketK a, CancellableK b) => MethodInfo * SocketReceiveMethodInfo a signature 

socketReceiveFrom

socketReceiveMessage

socketReceiveWithBlocking

socketSend

data SocketSendMethodInfo Source

Instances

((~) * signature (ByteString -> Maybe b -> m Int64), MonadIO m, SocketK a, CancellableK b) => MethodInfo * SocketSendMethodInfo a signature 

socketSendMessage

socketSendMessages

data SocketSendMessagesMethodInfo Source

Instances

((~) * signature ([OutputMessage] -> Int32 -> Maybe b -> m Int32), MonadIO m, SocketK a, CancellableK b) => MethodInfo * SocketSendMessagesMethodInfo a signature 

socketSendTo

data SocketSendToMethodInfo Source

Instances

((~) * signature (Maybe b -> ByteString -> Maybe c -> m Int64), MonadIO m, SocketK a, SocketAddressK b, CancellableK c) => MethodInfo * SocketSendToMethodInfo a signature 

socketSendWithBlocking

socketSetBlocking

data SocketSetBlockingMethodInfo Source

Instances

((~) * signature (Bool -> m ()), MonadIO m, SocketK a) => MethodInfo * SocketSetBlockingMethodInfo a signature 

socketSetBlocking :: (MonadIO m, SocketK a) => a -> Bool -> m () Source

socketSetBroadcast

data SocketSetBroadcastMethodInfo Source

Instances

((~) * signature (Bool -> m ()), MonadIO m, SocketK a) => MethodInfo * SocketSetBroadcastMethodInfo a signature 

socketSetBroadcast :: (MonadIO m, SocketK a) => a -> Bool -> m () Source

socketSetKeepalive

data SocketSetKeepaliveMethodInfo Source

Instances

((~) * signature (Bool -> m ()), MonadIO m, SocketK a) => MethodInfo * SocketSetKeepaliveMethodInfo a signature 

socketSetKeepalive :: (MonadIO m, SocketK a) => a -> Bool -> m () Source

socketSetListenBacklog

data SocketSetListenBacklogMethodInfo Source

Instances

((~) * signature (Int32 -> m ()), MonadIO m, SocketK a) => MethodInfo * SocketSetListenBacklogMethodInfo a signature 

socketSetMulticastLoopback

data SocketSetMulticastLoopbackMethodInfo Source

Instances

((~) * signature (Bool -> m ()), MonadIO m, SocketK a) => MethodInfo * SocketSetMulticastLoopbackMethodInfo a signature 

socketSetMulticastTtl

data SocketSetMulticastTtlMethodInfo Source

Instances

((~) * signature (Word32 -> m ()), MonadIO m, SocketK a) => MethodInfo * SocketSetMulticastTtlMethodInfo a signature 

socketSetOption

data SocketSetOptionMethodInfo Source

Instances

((~) * signature (Int32 -> Int32 -> Int32 -> m ()), MonadIO m, SocketK a) => MethodInfo * SocketSetOptionMethodInfo a signature 

socketSetOption :: (MonadIO m, SocketK a) => a -> Int32 -> Int32 -> Int32 -> m () Source

socketSetTimeout

data SocketSetTimeoutMethodInfo Source

Instances

((~) * signature (Word32 -> m ()), MonadIO m, SocketK a) => MethodInfo * SocketSetTimeoutMethodInfo a signature 

socketSetTimeout :: (MonadIO m, SocketK a) => a -> Word32 -> m () Source

socketSetTtl

data SocketSetTtlMethodInfo Source

Instances

((~) * signature (Word32 -> m ()), MonadIO m, SocketK a) => MethodInfo * SocketSetTtlMethodInfo a signature 

socketSetTtl :: (MonadIO m, SocketK a) => a -> Word32 -> m () Source

socketShutdown

data SocketShutdownMethodInfo Source

Instances

((~) * signature (Bool -> Bool -> m ()), MonadIO m, SocketK a) => MethodInfo * SocketShutdownMethodInfo a signature 

socketShutdown :: (MonadIO m, SocketK a) => a -> Bool -> Bool -> m () Source

socketSpeaksIpv4

data SocketSpeaksIpv4MethodInfo Source

Instances

((~) * signature (m Bool), MonadIO m, SocketK a) => MethodInfo * SocketSpeaksIpv4MethodInfo a signature 

Properties

Blocking

setSocketBlocking :: (MonadIO m, SocketK o) => o -> Bool -> m () Source

Broadcast

setSocketBroadcast :: (MonadIO m, SocketK o) => o -> Bool -> m () Source

Family

Fd

getSocketFd :: (MonadIO m, SocketK o) => o -> m Int32 Source

Keepalive

setSocketKeepalive :: (MonadIO m, SocketK o) => o -> Bool -> m () Source

ListenBacklog

LocalAddress

MulticastLoopback

MulticastTtl

Protocol

RemoteAddress

Timeout

setSocketTimeout :: (MonadIO m, SocketK o) => o -> Word32 -> m () Source

Ttl

setSocketTtl :: (MonadIO m, SocketK o) => o -> Word32 -> m () Source

Type