gi-soup-0.2.52.15: Soup 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.Soup.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

socketConnectAsync

data SocketConnectAsyncMethodInfo Source

Instances

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

socketConnectSync

data SocketConnectSyncMethodInfo Source

Instances

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

socketDisconnect

data SocketDisconnectMethodInfo Source

Instances

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

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

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

socketGetLocalAddress

data SocketGetLocalAddressMethodInfo Source

Instances

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

socketGetRemoteAddress

socketIsConnected

data SocketIsConnectedMethodInfo Source

Instances

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

socketIsSsl

data SocketIsSslMethodInfo Source

Instances

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

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

socketListen

data SocketListenMethodInfo Source

Instances

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

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

socketRead

data SocketReadMethodInfo Source

Instances

((~) * signature (ByteString -> Maybe b -> m (SocketIOStatus, Word64)), MonadIO m, SocketK a, CancellableK b) => MethodInfo * SocketReadMethodInfo a signature 

socketReadUntil

data SocketReadUntilMethodInfo Source

Instances

((~) * signature (ByteString -> Ptr () -> Word64 -> Bool -> Maybe b -> m (SocketIOStatus, Word64)), MonadIO m, SocketK a, CancellableK b) => MethodInfo * SocketReadUntilMethodInfo a signature 

socketStartProxySsl

data SocketStartProxySslMethodInfo Source

Instances

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

socketStartSsl

data SocketStartSslMethodInfo Source

Instances

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

socketWrite

data SocketWriteMethodInfo Source

Instances

((~) * signature (ByteString -> Maybe b -> m (SocketIOStatus, Word64)), MonadIO m, SocketK a, CancellableK b) => MethodInfo * SocketWriteMethodInfo a signature 

Properties

AsyncContext

Fd

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

Gsocket

Iostream

Ipv6Only

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

IsServer

LocalAddress

NonBlocking

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

RemoteAddress

SslCreds

getSocketSslCreds :: (MonadIO m, SocketK o) => o -> m (Ptr ()) Source

setSocketSslCreds :: (MonadIO m, SocketK o) => o -> Ptr () -> m () Source

SslFallback

SslStrict

Timeout

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

TlsCertificate

TlsErrors

TrustedCertificate

UseThreadContext

Signals

Disconnected

Event

type SocketEventCallbackC = Ptr () -> CUInt -> Ptr IOStream -> Ptr () -> IO () Source

NewConnection

Readable

type SocketReadableCallbackC = Ptr () -> Ptr () -> IO () Source

Writable

type SocketWritableCallbackC = Ptr () -> Ptr () -> IO () Source