toxcore-c-0.2.12: Haskell bindings to the C reference implementation of Tox
Safe HaskellNone
LanguageHaskell2010

Network.Tox.C

Synopsis

Documentation

data ErrGetPort Source #

Constructors

ErrGetPortNotBound 

Instances

Instances details
Bounded ErrGetPort Source # 
Instance details

Defined in FFI.Tox.Tox

Enum ErrGetPort Source # 
Instance details

Defined in FFI.Tox.Tox

Eq ErrGetPort Source # 
Instance details

Defined in FFI.Tox.Tox

Ord ErrGetPort Source # 
Instance details

Defined in FFI.Tox.Tox

Read ErrGetPort Source # 
Instance details

Defined in FFI.Tox.Tox

Show ErrGetPort Source # 
Instance details

Defined in FFI.Tox.Tox

Generic ErrGetPort Source # 
Instance details

Defined in FFI.Tox.Tox

Associated Types

type Rep ErrGetPort :: Type -> Type #

Arbitrary ErrGetPort Source # 
Instance details

Defined in FFI.Tox.Tox

MessagePack ErrGetPort Source # 
Instance details

Defined in FFI.Tox.Tox

type Rep ErrGetPort Source # 
Instance details

Defined in FFI.Tox.Tox

type Rep ErrGetPort = D1 ('MetaData "ErrGetPort" "FFI.Tox.Tox" "toxcore-c-0.2.12-inplace" 'False) (C1 ('MetaCons "ErrGetPortNotBound" 'PrefixI 'False) (U1 :: Type -> Type))

data ErrFriendCustomPacket Source #

Instances

Instances details
Bounded ErrFriendCustomPacket Source # 
Instance details

Defined in FFI.Tox.Tox

Enum ErrFriendCustomPacket Source # 
Instance details

Defined in FFI.Tox.Tox

Eq ErrFriendCustomPacket Source # 
Instance details

Defined in FFI.Tox.Tox

Ord ErrFriendCustomPacket Source # 
Instance details

Defined in FFI.Tox.Tox

Read ErrFriendCustomPacket Source # 
Instance details

Defined in FFI.Tox.Tox

Show ErrFriendCustomPacket Source # 
Instance details

Defined in FFI.Tox.Tox

Generic ErrFriendCustomPacket Source # 
Instance details

Defined in FFI.Tox.Tox

Associated Types

type Rep ErrFriendCustomPacket :: Type -> Type #

Arbitrary ErrFriendCustomPacket Source # 
Instance details

Defined in FFI.Tox.Tox

MessagePack ErrFriendCustomPacket Source # 
Instance details

Defined in FFI.Tox.Tox

type Rep ErrFriendCustomPacket Source # 
Instance details

Defined in FFI.Tox.Tox

type Rep ErrFriendCustomPacket = D1 ('MetaData "ErrFriendCustomPacket" "FFI.Tox.Tox" "toxcore-c-0.2.12-inplace" 'False) ((C1 ('MetaCons "ErrFriendCustomPacketNull" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "ErrFriendCustomPacketFriendNotFound" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ErrFriendCustomPacketFriendNotConnected" 'PrefixI 'False) (U1 :: Type -> Type))) :+: ((C1 ('MetaCons "ErrFriendCustomPacketInvalid" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ErrFriendCustomPacketEmpty" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "ErrFriendCustomPacketTooLong" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ErrFriendCustomPacketSendq" 'PrefixI 'False) (U1 :: Type -> Type))))

data ErrConferenceGetType Source #

Instances

Instances details
Bounded ErrConferenceGetType Source # 
Instance details

Defined in FFI.Tox.Tox

Enum ErrConferenceGetType Source # 
Instance details

Defined in FFI.Tox.Tox

Eq ErrConferenceGetType Source # 
Instance details

Defined in FFI.Tox.Tox

Ord ErrConferenceGetType Source # 
Instance details

Defined in FFI.Tox.Tox

Read ErrConferenceGetType Source # 
Instance details

Defined in FFI.Tox.Tox

Show ErrConferenceGetType Source # 
Instance details

Defined in FFI.Tox.Tox

Generic ErrConferenceGetType Source # 
Instance details

Defined in FFI.Tox.Tox

Associated Types

type Rep ErrConferenceGetType :: Type -> Type #

Arbitrary ErrConferenceGetType Source # 
Instance details

Defined in FFI.Tox.Tox

MessagePack ErrConferenceGetType Source # 
Instance details

Defined in FFI.Tox.Tox

type Rep ErrConferenceGetType Source # 
Instance details

Defined in FFI.Tox.Tox

type Rep ErrConferenceGetType = D1 ('MetaData "ErrConferenceGetType" "FFI.Tox.Tox" "toxcore-c-0.2.12-inplace" 'False) (C1 ('MetaCons "ErrConferenceGetTypeConferenceNotFound" 'PrefixI 'False) (U1 :: Type -> Type))

data ErrConferenceTitle Source #

Instances

Instances details
Bounded ErrConferenceTitle Source # 
Instance details

Defined in FFI.Tox.Tox

Enum ErrConferenceTitle Source # 
Instance details

Defined in FFI.Tox.Tox

Eq ErrConferenceTitle Source # 
Instance details

Defined in FFI.Tox.Tox

Ord ErrConferenceTitle Source # 
Instance details

Defined in FFI.Tox.Tox

Read ErrConferenceTitle Source # 
Instance details

Defined in FFI.Tox.Tox

Show ErrConferenceTitle Source # 
Instance details

Defined in FFI.Tox.Tox

Generic ErrConferenceTitle Source # 
Instance details

Defined in FFI.Tox.Tox

Associated Types

type Rep ErrConferenceTitle :: Type -> Type #

Arbitrary ErrConferenceTitle Source # 
Instance details

Defined in FFI.Tox.Tox

MessagePack ErrConferenceTitle Source # 
Instance details

Defined in FFI.Tox.Tox

type Rep ErrConferenceTitle Source # 
Instance details

Defined in FFI.Tox.Tox

type Rep ErrConferenceTitle = D1 ('MetaData "ErrConferenceTitle" "FFI.Tox.Tox" "toxcore-c-0.2.12-inplace" 'False) (C1 ('MetaCons "ErrConferenceTitleConferenceNotFound" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "ErrConferenceTitleInvalidLength" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ErrConferenceTitleFailSend" 'PrefixI 'False) (U1 :: Type -> Type)))

data ErrConferenceSendMessage Source #

Instances

Instances details
Bounded ErrConferenceSendMessage Source # 
Instance details

Defined in FFI.Tox.Tox

Enum ErrConferenceSendMessage Source # 
Instance details

Defined in FFI.Tox.Tox

Eq ErrConferenceSendMessage Source # 
Instance details

Defined in FFI.Tox.Tox

Ord ErrConferenceSendMessage Source # 
Instance details

Defined in FFI.Tox.Tox

Read ErrConferenceSendMessage Source # 
Instance details

Defined in FFI.Tox.Tox

Show ErrConferenceSendMessage Source # 
Instance details

Defined in FFI.Tox.Tox

Generic ErrConferenceSendMessage Source # 
Instance details

Defined in FFI.Tox.Tox

Associated Types

type Rep ErrConferenceSendMessage :: Type -> Type #

Arbitrary ErrConferenceSendMessage Source # 
Instance details

Defined in FFI.Tox.Tox

MessagePack ErrConferenceSendMessage Source # 
Instance details

Defined in FFI.Tox.Tox

type Rep ErrConferenceSendMessage Source # 
Instance details

Defined in FFI.Tox.Tox

type Rep ErrConferenceSendMessage = D1 ('MetaData "ErrConferenceSendMessage" "FFI.Tox.Tox" "toxcore-c-0.2.12-inplace" 'False) ((C1 ('MetaCons "ErrConferenceSendMessageConferenceNotFound" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ErrConferenceSendMessageTooLong" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "ErrConferenceSendMessageNoConnection" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ErrConferenceSendMessageFailSend" 'PrefixI 'False) (U1 :: Type -> Type)))

data ErrConferenceJoin Source #

Instances

Instances details
Bounded ErrConferenceJoin Source # 
Instance details

Defined in FFI.Tox.Tox

Enum ErrConferenceJoin Source # 
Instance details

Defined in FFI.Tox.Tox

Eq ErrConferenceJoin Source # 
Instance details

Defined in FFI.Tox.Tox

Ord ErrConferenceJoin Source # 
Instance details

Defined in FFI.Tox.Tox

Read ErrConferenceJoin Source # 
Instance details

Defined in FFI.Tox.Tox

Show ErrConferenceJoin Source # 
Instance details

Defined in FFI.Tox.Tox

Generic ErrConferenceJoin Source # 
Instance details

Defined in FFI.Tox.Tox

Associated Types

type Rep ErrConferenceJoin :: Type -> Type #

Arbitrary ErrConferenceJoin Source # 
Instance details

Defined in FFI.Tox.Tox

MessagePack ErrConferenceJoin Source # 
Instance details

Defined in FFI.Tox.Tox

type Rep ErrConferenceJoin Source # 
Instance details

Defined in FFI.Tox.Tox

type Rep ErrConferenceJoin = D1 ('MetaData "ErrConferenceJoin" "FFI.Tox.Tox" "toxcore-c-0.2.12-inplace" 'False) ((C1 ('MetaCons "ErrConferenceJoinInvalidLength" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "ErrConferenceJoinWrongType" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ErrConferenceJoinFriendNotFound" 'PrefixI 'False) (U1 :: Type -> Type))) :+: (C1 ('MetaCons "ErrConferenceJoinDuplicate" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "ErrConferenceJoinInitFail" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ErrConferenceJoinFailSend" 'PrefixI 'False) (U1 :: Type -> Type))))

data ErrConferenceInvite Source #

Instances

Instances details
Bounded ErrConferenceInvite Source # 
Instance details

Defined in FFI.Tox.Tox

Enum ErrConferenceInvite Source # 
Instance details

Defined in FFI.Tox.Tox

Eq ErrConferenceInvite Source # 
Instance details

Defined in FFI.Tox.Tox

Ord ErrConferenceInvite Source # 
Instance details

Defined in FFI.Tox.Tox

Read ErrConferenceInvite Source # 
Instance details

Defined in FFI.Tox.Tox

Show ErrConferenceInvite Source # 
Instance details

Defined in FFI.Tox.Tox

Generic ErrConferenceInvite Source # 
Instance details

Defined in FFI.Tox.Tox

Associated Types

type Rep ErrConferenceInvite :: Type -> Type #

Arbitrary ErrConferenceInvite Source # 
Instance details

Defined in FFI.Tox.Tox

MessagePack ErrConferenceInvite Source # 
Instance details

Defined in FFI.Tox.Tox

type Rep ErrConferenceInvite Source # 
Instance details

Defined in FFI.Tox.Tox

type Rep ErrConferenceInvite = D1 ('MetaData "ErrConferenceInvite" "FFI.Tox.Tox" "toxcore-c-0.2.12-inplace" 'False) (C1 ('MetaCons "ErrConferenceInviteConferenceNotFound" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "ErrConferenceInviteFailSend" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ErrConferenceInviteNoConnection" 'PrefixI 'False) (U1 :: Type -> Type)))

data ErrConferencePeerQuery Source #

Instances

Instances details
Bounded ErrConferencePeerQuery Source # 
Instance details

Defined in FFI.Tox.Tox

Enum ErrConferencePeerQuery Source # 
Instance details

Defined in FFI.Tox.Tox

Eq ErrConferencePeerQuery Source # 
Instance details

Defined in FFI.Tox.Tox

Ord ErrConferencePeerQuery Source # 
Instance details

Defined in FFI.Tox.Tox

Read ErrConferencePeerQuery Source # 
Instance details

Defined in FFI.Tox.Tox

Show ErrConferencePeerQuery Source # 
Instance details

Defined in FFI.Tox.Tox

Generic ErrConferencePeerQuery Source # 
Instance details

Defined in FFI.Tox.Tox

Associated Types

type Rep ErrConferencePeerQuery :: Type -> Type #

Arbitrary ErrConferencePeerQuery Source # 
Instance details

Defined in FFI.Tox.Tox

MessagePack ErrConferencePeerQuery Source # 
Instance details

Defined in FFI.Tox.Tox

type Rep ErrConferencePeerQuery Source # 
Instance details

Defined in FFI.Tox.Tox

type Rep ErrConferencePeerQuery = D1 ('MetaData "ErrConferencePeerQuery" "FFI.Tox.Tox" "toxcore-c-0.2.12-inplace" 'False) (C1 ('MetaCons "ErrConferencePeerQueryConferenceNotFound" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "ErrConferencePeerQueryPeerNotFound" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ErrConferencePeerQueryNoConnection" 'PrefixI 'False) (U1 :: Type -> Type)))

data ErrConferenceDelete Source #

Instances

Instances details
Bounded ErrConferenceDelete Source # 
Instance details

Defined in FFI.Tox.Tox

Enum ErrConferenceDelete Source # 
Instance details

Defined in FFI.Tox.Tox

Eq ErrConferenceDelete Source # 
Instance details

Defined in FFI.Tox.Tox

Ord ErrConferenceDelete Source # 
Instance details

Defined in FFI.Tox.Tox

Read ErrConferenceDelete Source # 
Instance details

Defined in FFI.Tox.Tox

Show ErrConferenceDelete Source # 
Instance details

Defined in FFI.Tox.Tox

Generic ErrConferenceDelete Source # 
Instance details

Defined in FFI.Tox.Tox

Associated Types

type Rep ErrConferenceDelete :: Type -> Type #

Arbitrary ErrConferenceDelete Source # 
Instance details

Defined in FFI.Tox.Tox

MessagePack ErrConferenceDelete Source # 
Instance details

Defined in FFI.Tox.Tox

type Rep ErrConferenceDelete Source # 
Instance details

Defined in FFI.Tox.Tox

type Rep ErrConferenceDelete = D1 ('MetaData "ErrConferenceDelete" "FFI.Tox.Tox" "toxcore-c-0.2.12-inplace" 'False) (C1 ('MetaCons "ErrConferenceDeleteConferenceNotFound" 'PrefixI 'False) (U1 :: Type -> Type))

data ErrConferenceNew Source #

Constructors

ErrConferenceNewInit 

Instances

Instances details
Bounded ErrConferenceNew Source # 
Instance details

Defined in FFI.Tox.Tox

Enum ErrConferenceNew Source # 
Instance details

Defined in FFI.Tox.Tox

Eq ErrConferenceNew Source # 
Instance details

Defined in FFI.Tox.Tox

Ord ErrConferenceNew Source # 
Instance details

Defined in FFI.Tox.Tox

Read ErrConferenceNew Source # 
Instance details

Defined in FFI.Tox.Tox

Show ErrConferenceNew Source # 
Instance details

Defined in FFI.Tox.Tox

Generic ErrConferenceNew Source # 
Instance details

Defined in FFI.Tox.Tox

Associated Types

type Rep ErrConferenceNew :: Type -> Type #

Arbitrary ErrConferenceNew Source # 
Instance details

Defined in FFI.Tox.Tox

MessagePack ErrConferenceNew Source # 
Instance details

Defined in FFI.Tox.Tox

type Rep ErrConferenceNew Source # 
Instance details

Defined in FFI.Tox.Tox

type Rep ErrConferenceNew = D1 ('MetaData "ErrConferenceNew" "FFI.Tox.Tox" "toxcore-c-0.2.12-inplace" 'False) (C1 ('MetaCons "ErrConferenceNewInit" 'PrefixI 'False) (U1 :: Type -> Type))

data ErrFileSendChunk Source #

Instances

Instances details
Bounded ErrFileSendChunk Source # 
Instance details

Defined in FFI.Tox.Tox

Enum ErrFileSendChunk Source # 
Instance details

Defined in FFI.Tox.Tox

Eq ErrFileSendChunk Source # 
Instance details

Defined in FFI.Tox.Tox

Ord ErrFileSendChunk Source # 
Instance details

Defined in FFI.Tox.Tox

Read ErrFileSendChunk Source # 
Instance details

Defined in FFI.Tox.Tox

Show ErrFileSendChunk Source # 
Instance details

Defined in FFI.Tox.Tox

Generic ErrFileSendChunk Source # 
Instance details

Defined in FFI.Tox.Tox

Associated Types

type Rep ErrFileSendChunk :: Type -> Type #

Arbitrary ErrFileSendChunk Source # 
Instance details

Defined in FFI.Tox.Tox

MessagePack ErrFileSendChunk Source # 
Instance details

Defined in FFI.Tox.Tox

type Rep ErrFileSendChunk Source # 
Instance details

Defined in FFI.Tox.Tox

type Rep ErrFileSendChunk = D1 ('MetaData "ErrFileSendChunk" "FFI.Tox.Tox" "toxcore-c-0.2.12-inplace" 'False) (((C1 ('MetaCons "ErrFileSendChunkNull" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ErrFileSendChunkFriendNotFound" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "ErrFileSendChunkFriendNotConnected" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ErrFileSendChunkNotFound" 'PrefixI 'False) (U1 :: Type -> Type))) :+: ((C1 ('MetaCons "ErrFileSendChunkNotTransferring" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ErrFileSendChunkInvalidLength" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "ErrFileSendChunkSendq" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ErrFileSendChunkWrongPosition" 'PrefixI 'False) (U1 :: Type -> Type))))

data ErrFileSend Source #

Instances

Instances details
Bounded ErrFileSend Source # 
Instance details

Defined in FFI.Tox.Tox

Enum ErrFileSend Source # 
Instance details

Defined in FFI.Tox.Tox

Eq ErrFileSend Source # 
Instance details

Defined in FFI.Tox.Tox

Ord ErrFileSend Source # 
Instance details

Defined in FFI.Tox.Tox

Read ErrFileSend Source # 
Instance details

Defined in FFI.Tox.Tox

Show ErrFileSend Source # 
Instance details

Defined in FFI.Tox.Tox

Generic ErrFileSend Source # 
Instance details

Defined in FFI.Tox.Tox

Associated Types

type Rep ErrFileSend :: Type -> Type #

Arbitrary ErrFileSend Source # 
Instance details

Defined in FFI.Tox.Tox

MessagePack ErrFileSend Source # 
Instance details

Defined in FFI.Tox.Tox

type Rep ErrFileSend Source # 
Instance details

Defined in FFI.Tox.Tox

type Rep ErrFileSend = D1 ('MetaData "ErrFileSend" "FFI.Tox.Tox" "toxcore-c-0.2.12-inplace" 'False) ((C1 ('MetaCons "ErrFileSendNull" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ErrFileSendFriendNotFound" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "ErrFileSendFriendNotConnected" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "ErrFileSendNameTooLong" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ErrFileSendTooMany" 'PrefixI 'False) (U1 :: Type -> Type))))

data ErrFileGet Source #

Instances

Instances details
Bounded ErrFileGet Source # 
Instance details

Defined in FFI.Tox.Tox

Enum ErrFileGet Source # 
Instance details

Defined in FFI.Tox.Tox

Eq ErrFileGet Source # 
Instance details

Defined in FFI.Tox.Tox

Ord ErrFileGet Source # 
Instance details

Defined in FFI.Tox.Tox

Read ErrFileGet Source # 
Instance details

Defined in FFI.Tox.Tox

Show ErrFileGet Source # 
Instance details

Defined in FFI.Tox.Tox

Generic ErrFileGet Source # 
Instance details

Defined in FFI.Tox.Tox

Associated Types

type Rep ErrFileGet :: Type -> Type #

Arbitrary ErrFileGet Source # 
Instance details

Defined in FFI.Tox.Tox

MessagePack ErrFileGet Source # 
Instance details

Defined in FFI.Tox.Tox

type Rep ErrFileGet Source # 
Instance details

Defined in FFI.Tox.Tox

type Rep ErrFileGet = D1 ('MetaData "ErrFileGet" "FFI.Tox.Tox" "toxcore-c-0.2.12-inplace" 'False) (C1 ('MetaCons "ErrFileGetNull" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "ErrFileGetFriendNotFound" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ErrFileGetNotFound" 'PrefixI 'False) (U1 :: Type -> Type)))

data ErrFileSeek Source #

Instances

Instances details
Bounded ErrFileSeek Source # 
Instance details

Defined in FFI.Tox.Tox

Enum ErrFileSeek Source # 
Instance details

Defined in FFI.Tox.Tox

Eq ErrFileSeek Source # 
Instance details

Defined in FFI.Tox.Tox

Ord ErrFileSeek Source # 
Instance details

Defined in FFI.Tox.Tox

Read ErrFileSeek Source # 
Instance details

Defined in FFI.Tox.Tox

Show ErrFileSeek Source # 
Instance details

Defined in FFI.Tox.Tox

Generic ErrFileSeek Source # 
Instance details

Defined in FFI.Tox.Tox

Associated Types

type Rep ErrFileSeek :: Type -> Type #

Arbitrary ErrFileSeek Source # 
Instance details

Defined in FFI.Tox.Tox

MessagePack ErrFileSeek Source # 
Instance details

Defined in FFI.Tox.Tox

type Rep ErrFileSeek Source # 
Instance details

Defined in FFI.Tox.Tox

type Rep ErrFileSeek = D1 ('MetaData "ErrFileSeek" "FFI.Tox.Tox" "toxcore-c-0.2.12-inplace" 'False) ((C1 ('MetaCons "ErrFileSeekFriendNotFound" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "ErrFileSeekFriendNotConnected" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ErrFileSeekNotFound" 'PrefixI 'False) (U1 :: Type -> Type))) :+: (C1 ('MetaCons "ErrFileSeekDenied" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "ErrFileSeekInvalidPosition" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ErrFileSeekSendq" 'PrefixI 'False) (U1 :: Type -> Type))))

data ErrFileControl Source #

Instances

Instances details
Bounded ErrFileControl Source # 
Instance details

Defined in FFI.Tox.Tox

Enum ErrFileControl Source # 
Instance details

Defined in FFI.Tox.Tox

Eq ErrFileControl Source # 
Instance details

Defined in FFI.Tox.Tox

Ord ErrFileControl Source # 
Instance details

Defined in FFI.Tox.Tox

Read ErrFileControl Source # 
Instance details

Defined in FFI.Tox.Tox

Show ErrFileControl Source # 
Instance details

Defined in FFI.Tox.Tox

Generic ErrFileControl Source # 
Instance details

Defined in FFI.Tox.Tox

Associated Types

type Rep ErrFileControl :: Type -> Type #

Arbitrary ErrFileControl Source # 
Instance details

Defined in FFI.Tox.Tox

MessagePack ErrFileControl Source # 
Instance details

Defined in FFI.Tox.Tox

type Rep ErrFileControl Source # 
Instance details

Defined in FFI.Tox.Tox

type Rep ErrFileControl = D1 ('MetaData "ErrFileControl" "FFI.Tox.Tox" "toxcore-c-0.2.12-inplace" 'False) ((C1 ('MetaCons "ErrFileControlFriendNotFound" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "ErrFileControlFriendNotConnected" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ErrFileControlNotFound" 'PrefixI 'False) (U1 :: Type -> Type))) :+: ((C1 ('MetaCons "ErrFileControlNotPaused" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ErrFileControlDenied" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "ErrFileControlAlreadyPaused" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ErrFileControlSendq" 'PrefixI 'False) (U1 :: Type -> Type))))

data FileKind Source #

Instances

Instances details
Bounded FileKind Source # 
Instance details

Defined in FFI.Tox.Tox

Enum FileKind Source # 
Instance details

Defined in FFI.Tox.Tox

Eq FileKind Source # 
Instance details

Defined in FFI.Tox.Tox

Ord FileKind Source # 
Instance details

Defined in FFI.Tox.Tox

Read FileKind Source # 
Instance details

Defined in FFI.Tox.Tox

Show FileKind Source # 
Instance details

Defined in FFI.Tox.Tox

Generic FileKind Source # 
Instance details

Defined in FFI.Tox.Tox

Associated Types

type Rep FileKind :: Type -> Type #

Methods

from :: FileKind -> Rep FileKind x #

to :: Rep FileKind x -> FileKind #

Arbitrary FileKind Source # 
Instance details

Defined in FFI.Tox.Tox

MessagePack FileKind Source # 
Instance details

Defined in FFI.Tox.Tox

type Rep FileKind Source # 
Instance details

Defined in FFI.Tox.Tox

type Rep FileKind = D1 ('MetaData "FileKind" "FFI.Tox.Tox" "toxcore-c-0.2.12-inplace" 'False) (C1 ('MetaCons "FileKindData" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "FileKindAvatar" 'PrefixI 'False) (U1 :: Type -> Type))

data ErrFriendSendMessage Source #

Instances

Instances details
Bounded ErrFriendSendMessage Source # 
Instance details

Defined in FFI.Tox.Tox

Enum ErrFriendSendMessage Source # 
Instance details

Defined in FFI.Tox.Tox

Eq ErrFriendSendMessage Source # 
Instance details

Defined in FFI.Tox.Tox

Ord ErrFriendSendMessage Source # 
Instance details

Defined in FFI.Tox.Tox

Read ErrFriendSendMessage Source # 
Instance details

Defined in FFI.Tox.Tox

Show ErrFriendSendMessage Source # 
Instance details

Defined in FFI.Tox.Tox

Generic ErrFriendSendMessage Source # 
Instance details

Defined in FFI.Tox.Tox

Associated Types

type Rep ErrFriendSendMessage :: Type -> Type #

Arbitrary ErrFriendSendMessage Source # 
Instance details

Defined in FFI.Tox.Tox

MessagePack ErrFriendSendMessage Source # 
Instance details

Defined in FFI.Tox.Tox

type Rep ErrFriendSendMessage Source # 
Instance details

Defined in FFI.Tox.Tox

type Rep ErrFriendSendMessage = D1 ('MetaData "ErrFriendSendMessage" "FFI.Tox.Tox" "toxcore-c-0.2.12-inplace" 'False) ((C1 ('MetaCons "ErrFriendSendMessageNull" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "ErrFriendSendMessageFriendNotFound" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ErrFriendSendMessageFriendNotConnected" 'PrefixI 'False) (U1 :: Type -> Type))) :+: (C1 ('MetaCons "ErrFriendSendMessageSendq" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "ErrFriendSendMessageTooLong" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ErrFriendSendMessageEmpty" 'PrefixI 'False) (U1 :: Type -> Type))))

data ErrSetTyping Source #

Instances

Instances details
Bounded ErrSetTyping Source # 
Instance details

Defined in FFI.Tox.Tox

Enum ErrSetTyping Source # 
Instance details

Defined in FFI.Tox.Tox

Eq ErrSetTyping Source # 
Instance details

Defined in FFI.Tox.Tox

Ord ErrSetTyping Source # 
Instance details

Defined in FFI.Tox.Tox

Read ErrSetTyping Source # 
Instance details

Defined in FFI.Tox.Tox

Show ErrSetTyping Source # 
Instance details

Defined in FFI.Tox.Tox

Generic ErrSetTyping Source # 
Instance details

Defined in FFI.Tox.Tox

Associated Types

type Rep ErrSetTyping :: Type -> Type #

Arbitrary ErrSetTyping Source # 
Instance details

Defined in FFI.Tox.Tox

MessagePack ErrSetTyping Source # 
Instance details

Defined in FFI.Tox.Tox

type Rep ErrSetTyping Source # 
Instance details

Defined in FFI.Tox.Tox

type Rep ErrSetTyping = D1 ('MetaData "ErrSetTyping" "FFI.Tox.Tox" "toxcore-c-0.2.12-inplace" 'False) (C1 ('MetaCons "ErrSetTypingFriendNotFound" 'PrefixI 'False) (U1 :: Type -> Type))

data ErrFriendQuery Source #

Instances

Instances details
Bounded ErrFriendQuery Source # 
Instance details

Defined in FFI.Tox.Tox

Enum ErrFriendQuery Source # 
Instance details

Defined in FFI.Tox.Tox

Eq ErrFriendQuery Source # 
Instance details

Defined in FFI.Tox.Tox

Ord ErrFriendQuery Source # 
Instance details

Defined in FFI.Tox.Tox

Read ErrFriendQuery Source # 
Instance details

Defined in FFI.Tox.Tox

Show ErrFriendQuery Source # 
Instance details

Defined in FFI.Tox.Tox

Generic ErrFriendQuery Source # 
Instance details

Defined in FFI.Tox.Tox

Associated Types

type Rep ErrFriendQuery :: Type -> Type #

Arbitrary ErrFriendQuery Source # 
Instance details

Defined in FFI.Tox.Tox

MessagePack ErrFriendQuery Source # 
Instance details

Defined in FFI.Tox.Tox

type Rep ErrFriendQuery Source # 
Instance details

Defined in FFI.Tox.Tox

type Rep ErrFriendQuery = D1 ('MetaData "ErrFriendQuery" "FFI.Tox.Tox" "toxcore-c-0.2.12-inplace" 'False) (C1 ('MetaCons "ErrFriendQueryNull" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ErrFriendQueryFriendNotFound" 'PrefixI 'False) (U1 :: Type -> Type))

data ErrFriendGetLastOnline Source #

Instances

Instances details
Bounded ErrFriendGetLastOnline Source # 
Instance details

Defined in FFI.Tox.Tox

Enum ErrFriendGetLastOnline Source # 
Instance details

Defined in FFI.Tox.Tox

Eq ErrFriendGetLastOnline Source # 
Instance details

Defined in FFI.Tox.Tox

Ord ErrFriendGetLastOnline Source # 
Instance details

Defined in FFI.Tox.Tox

Read ErrFriendGetLastOnline Source # 
Instance details

Defined in FFI.Tox.Tox

Show ErrFriendGetLastOnline Source # 
Instance details

Defined in FFI.Tox.Tox

Generic ErrFriendGetLastOnline Source # 
Instance details

Defined in FFI.Tox.Tox

Associated Types

type Rep ErrFriendGetLastOnline :: Type -> Type #

Arbitrary ErrFriendGetLastOnline Source # 
Instance details

Defined in FFI.Tox.Tox

MessagePack ErrFriendGetLastOnline Source # 
Instance details

Defined in FFI.Tox.Tox

type Rep ErrFriendGetLastOnline Source # 
Instance details

Defined in FFI.Tox.Tox

type Rep ErrFriendGetLastOnline = D1 ('MetaData "ErrFriendGetLastOnline" "FFI.Tox.Tox" "toxcore-c-0.2.12-inplace" 'False) (C1 ('MetaCons "ErrFriendGetLastOnlineFriendNotFound" 'PrefixI 'False) (U1 :: Type -> Type))

data ErrFriendGetPublicKey Source #

Instances

Instances details
Bounded ErrFriendGetPublicKey Source # 
Instance details

Defined in FFI.Tox.Tox

Enum ErrFriendGetPublicKey Source # 
Instance details

Defined in FFI.Tox.Tox

Eq ErrFriendGetPublicKey Source # 
Instance details

Defined in FFI.Tox.Tox

Ord ErrFriendGetPublicKey Source # 
Instance details

Defined in FFI.Tox.Tox

Read ErrFriendGetPublicKey Source # 
Instance details

Defined in FFI.Tox.Tox

Show ErrFriendGetPublicKey Source # 
Instance details

Defined in FFI.Tox.Tox

Generic ErrFriendGetPublicKey Source # 
Instance details

Defined in FFI.Tox.Tox

Associated Types

type Rep ErrFriendGetPublicKey :: Type -> Type #

Arbitrary ErrFriendGetPublicKey Source # 
Instance details

Defined in FFI.Tox.Tox

MessagePack ErrFriendGetPublicKey Source # 
Instance details

Defined in FFI.Tox.Tox

type Rep ErrFriendGetPublicKey Source # 
Instance details

Defined in FFI.Tox.Tox

type Rep ErrFriendGetPublicKey = D1 ('MetaData "ErrFriendGetPublicKey" "FFI.Tox.Tox" "toxcore-c-0.2.12-inplace" 'False) (C1 ('MetaCons "ErrFriendGetPublicKeyFriendNotFound" 'PrefixI 'False) (U1 :: Type -> Type))

data ErrFriendByPublicKey Source #

Instances

Instances details
Bounded ErrFriendByPublicKey Source # 
Instance details

Defined in FFI.Tox.Tox

Enum ErrFriendByPublicKey Source # 
Instance details

Defined in FFI.Tox.Tox

Eq ErrFriendByPublicKey Source # 
Instance details

Defined in FFI.Tox.Tox

Ord ErrFriendByPublicKey Source # 
Instance details

Defined in FFI.Tox.Tox

Read ErrFriendByPublicKey Source # 
Instance details

Defined in FFI.Tox.Tox

Show ErrFriendByPublicKey Source # 
Instance details

Defined in FFI.Tox.Tox

Generic ErrFriendByPublicKey Source # 
Instance details

Defined in FFI.Tox.Tox

Associated Types

type Rep ErrFriendByPublicKey :: Type -> Type #

Arbitrary ErrFriendByPublicKey Source # 
Instance details

Defined in FFI.Tox.Tox

MessagePack ErrFriendByPublicKey Source # 
Instance details

Defined in FFI.Tox.Tox

type Rep ErrFriendByPublicKey Source # 
Instance details

Defined in FFI.Tox.Tox

type Rep ErrFriendByPublicKey = D1 ('MetaData "ErrFriendByPublicKey" "FFI.Tox.Tox" "toxcore-c-0.2.12-inplace" 'False) (C1 ('MetaCons "ErrFriendByPublicKeyNull" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ErrFriendByPublicKeyNotFound" 'PrefixI 'False) (U1 :: Type -> Type))

data ErrFriendDelete Source #

Instances

Instances details
Bounded ErrFriendDelete Source # 
Instance details

Defined in FFI.Tox.Tox

Enum ErrFriendDelete Source # 
Instance details

Defined in FFI.Tox.Tox

Eq ErrFriendDelete Source # 
Instance details

Defined in FFI.Tox.Tox

Ord ErrFriendDelete Source # 
Instance details

Defined in FFI.Tox.Tox

Read ErrFriendDelete Source # 
Instance details

Defined in FFI.Tox.Tox

Show ErrFriendDelete Source # 
Instance details

Defined in FFI.Tox.Tox

Generic ErrFriendDelete Source # 
Instance details

Defined in FFI.Tox.Tox

Associated Types

type Rep ErrFriendDelete :: Type -> Type #

Arbitrary ErrFriendDelete Source # 
Instance details

Defined in FFI.Tox.Tox

MessagePack ErrFriendDelete Source # 
Instance details

Defined in FFI.Tox.Tox

type Rep ErrFriendDelete Source # 
Instance details

Defined in FFI.Tox.Tox

type Rep ErrFriendDelete = D1 ('MetaData "ErrFriendDelete" "FFI.Tox.Tox" "toxcore-c-0.2.12-inplace" 'False) (C1 ('MetaCons "ErrFriendDeleteFriendNotFound" 'PrefixI 'False) (U1 :: Type -> Type))

data ErrFriendAdd Source #

Instances

Instances details
Bounded ErrFriendAdd Source # 
Instance details

Defined in FFI.Tox.Tox

Enum ErrFriendAdd Source # 
Instance details

Defined in FFI.Tox.Tox

Eq ErrFriendAdd Source # 
Instance details

Defined in FFI.Tox.Tox

Ord ErrFriendAdd Source # 
Instance details

Defined in FFI.Tox.Tox

Read ErrFriendAdd Source # 
Instance details

Defined in FFI.Tox.Tox

Show ErrFriendAdd Source # 
Instance details

Defined in FFI.Tox.Tox

Generic ErrFriendAdd Source # 
Instance details

Defined in FFI.Tox.Tox

Associated Types

type Rep ErrFriendAdd :: Type -> Type #

Arbitrary ErrFriendAdd Source # 
Instance details

Defined in FFI.Tox.Tox

MessagePack ErrFriendAdd Source # 
Instance details

Defined in FFI.Tox.Tox

type Rep ErrFriendAdd Source # 
Instance details

Defined in FFI.Tox.Tox

type Rep ErrFriendAdd = D1 ('MetaData "ErrFriendAdd" "FFI.Tox.Tox" "toxcore-c-0.2.12-inplace" 'False) (((C1 ('MetaCons "ErrFriendAddNull" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ErrFriendAddTooLong" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "ErrFriendAddNoMessage" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ErrFriendAddOwnKey" 'PrefixI 'False) (U1 :: Type -> Type))) :+: ((C1 ('MetaCons "ErrFriendAddAlreadySent" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ErrFriendAddBadChecksum" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "ErrFriendAddSetNewNospam" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ErrFriendAddMalloc" 'PrefixI 'False) (U1 :: Type -> Type))))

data ErrSetInfo Source #

Instances

Instances details
Bounded ErrSetInfo Source # 
Instance details

Defined in FFI.Tox.Tox

Enum ErrSetInfo Source # 
Instance details

Defined in FFI.Tox.Tox

Eq ErrSetInfo Source # 
Instance details

Defined in FFI.Tox.Tox

Ord ErrSetInfo Source # 
Instance details

Defined in FFI.Tox.Tox

Read ErrSetInfo Source # 
Instance details

Defined in FFI.Tox.Tox

Show ErrSetInfo Source # 
Instance details

Defined in FFI.Tox.Tox

Generic ErrSetInfo Source # 
Instance details

Defined in FFI.Tox.Tox

Associated Types

type Rep ErrSetInfo :: Type -> Type #

Arbitrary ErrSetInfo Source # 
Instance details

Defined in FFI.Tox.Tox

MessagePack ErrSetInfo Source # 
Instance details

Defined in FFI.Tox.Tox

type Rep ErrSetInfo Source # 
Instance details

Defined in FFI.Tox.Tox

type Rep ErrSetInfo = D1 ('MetaData "ErrSetInfo" "FFI.Tox.Tox" "toxcore-c-0.2.12-inplace" 'False) (C1 ('MetaCons "ErrSetInfoNull" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ErrSetInfoTooLong" 'PrefixI 'False) (U1 :: Type -> Type))

data Connection Source #

Instances

Instances details
Bounded Connection Source # 
Instance details

Defined in FFI.Tox.Tox

Enum Connection Source # 
Instance details

Defined in FFI.Tox.Tox

Eq Connection Source # 
Instance details

Defined in FFI.Tox.Tox

Ord Connection Source # 
Instance details

Defined in FFI.Tox.Tox

Read Connection Source # 
Instance details

Defined in FFI.Tox.Tox

Show Connection Source # 
Instance details

Defined in FFI.Tox.Tox

Generic Connection Source # 
Instance details

Defined in FFI.Tox.Tox

Associated Types

type Rep Connection :: Type -> Type #

Arbitrary Connection Source # 
Instance details

Defined in FFI.Tox.Tox

MessagePack Connection Source # 
Instance details

Defined in FFI.Tox.Tox

type Rep Connection Source # 
Instance details

Defined in FFI.Tox.Tox

type Rep Connection = D1 ('MetaData "Connection" "FFI.Tox.Tox" "toxcore-c-0.2.12-inplace" 'False) (C1 ('MetaCons "ConnectionNone" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "ConnectionTcp" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ConnectionUdp" 'PrefixI 'False) (U1 :: Type -> Type)))

data ErrBootstrap Source #

Instances

Instances details
Bounded ErrBootstrap Source # 
Instance details

Defined in FFI.Tox.Tox

Enum ErrBootstrap Source # 
Instance details

Defined in FFI.Tox.Tox

Eq ErrBootstrap Source # 
Instance details

Defined in FFI.Tox.Tox

Ord ErrBootstrap Source # 
Instance details

Defined in FFI.Tox.Tox

Read ErrBootstrap Source # 
Instance details

Defined in FFI.Tox.Tox

Show ErrBootstrap Source # 
Instance details

Defined in FFI.Tox.Tox

Generic ErrBootstrap Source # 
Instance details

Defined in FFI.Tox.Tox

Associated Types

type Rep ErrBootstrap :: Type -> Type #

Arbitrary ErrBootstrap Source # 
Instance details

Defined in FFI.Tox.Tox

MessagePack ErrBootstrap Source # 
Instance details

Defined in FFI.Tox.Tox

type Rep ErrBootstrap Source # 
Instance details

Defined in FFI.Tox.Tox

type Rep ErrBootstrap = D1 ('MetaData "ErrBootstrap" "FFI.Tox.Tox" "toxcore-c-0.2.12-inplace" 'False) (C1 ('MetaCons "ErrBootstrapNull" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "ErrBootstrapBadHost" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ErrBootstrapBadPort" 'PrefixI 'False) (U1 :: Type -> Type)))

data ErrNew Source #

Instances

Instances details
Bounded ErrNew Source # 
Instance details

Defined in FFI.Tox.Tox

Enum ErrNew Source # 
Instance details

Defined in FFI.Tox.Tox

Eq ErrNew Source # 
Instance details

Defined in FFI.Tox.Tox

Methods

(==) :: ErrNew -> ErrNew -> Bool #

(/=) :: ErrNew -> ErrNew -> Bool #

Ord ErrNew Source # 
Instance details

Defined in FFI.Tox.Tox

Read ErrNew Source # 
Instance details

Defined in FFI.Tox.Tox

Show ErrNew Source # 
Instance details

Defined in FFI.Tox.Tox

Generic ErrNew Source # 
Instance details

Defined in FFI.Tox.Tox

Associated Types

type Rep ErrNew :: Type -> Type #

Methods

from :: ErrNew -> Rep ErrNew x #

to :: Rep ErrNew x -> ErrNew #

Arbitrary ErrNew Source # 
Instance details

Defined in FFI.Tox.Tox

MessagePack ErrNew Source # 
Instance details

Defined in FFI.Tox.Tox

type Rep ErrNew Source # 
Instance details

Defined in FFI.Tox.Tox

type Rep ErrNew = D1 ('MetaData "ErrNew" "FFI.Tox.Tox" "toxcore-c-0.2.12-inplace" 'False) (((C1 ('MetaCons "ErrNewNull" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ErrNewMalloc" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "ErrNewPortAlloc" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ErrNewProxyBadType" 'PrefixI 'False) (U1 :: Type -> Type))) :+: ((C1 ('MetaCons "ErrNewProxyBadHost" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ErrNewProxyBadPort" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "ErrNewProxyNotFound" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "ErrNewLoadEncrypted" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ErrNewLoadBadFormat" 'PrefixI 'False) (U1 :: Type -> Type)))))

data LogLevel Source #

Instances

Instances details
Bounded LogLevel Source # 
Instance details

Defined in FFI.Tox.Tox

Enum LogLevel Source # 
Instance details

Defined in FFI.Tox.Tox

Eq LogLevel Source # 
Instance details

Defined in FFI.Tox.Tox

Ord LogLevel Source # 
Instance details

Defined in FFI.Tox.Tox

Read LogLevel Source # 
Instance details

Defined in FFI.Tox.Tox

Show LogLevel Source # 
Instance details

Defined in FFI.Tox.Tox

Generic LogLevel Source # 
Instance details

Defined in FFI.Tox.Tox

Associated Types

type Rep LogLevel :: Type -> Type #

Methods

from :: LogLevel -> Rep LogLevel x #

to :: Rep LogLevel x -> LogLevel #

Arbitrary LogLevel Source # 
Instance details

Defined in FFI.Tox.Tox

MessagePack LogLevel Source # 
Instance details

Defined in FFI.Tox.Tox

type Rep LogLevel Source # 
Instance details

Defined in FFI.Tox.Tox

type Rep LogLevel = D1 ('MetaData "LogLevel" "FFI.Tox.Tox" "toxcore-c-0.2.12-inplace" 'False) ((C1 ('MetaCons "LogLevelTrace" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "LogLevelDebug" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "LogLevelInfo" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "LogLevelWarning" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "LogLevelError" 'PrefixI 'False) (U1 :: Type -> Type))))

data SavedataType Source #

Instances

Instances details
Bounded SavedataType Source # 
Instance details

Defined in FFI.Tox.Tox

Enum SavedataType Source # 
Instance details

Defined in FFI.Tox.Tox

Eq SavedataType Source # 
Instance details

Defined in FFI.Tox.Tox

Ord SavedataType Source # 
Instance details

Defined in FFI.Tox.Tox

Read SavedataType Source # 
Instance details

Defined in FFI.Tox.Tox

Show SavedataType Source # 
Instance details

Defined in FFI.Tox.Tox

Generic SavedataType Source # 
Instance details

Defined in FFI.Tox.Tox

Associated Types

type Rep SavedataType :: Type -> Type #

Arbitrary SavedataType Source # 
Instance details

Defined in FFI.Tox.Tox

MessagePack SavedataType Source # 
Instance details

Defined in FFI.Tox.Tox

type Rep SavedataType Source # 
Instance details

Defined in FFI.Tox.Tox

type Rep SavedataType = D1 ('MetaData "SavedataType" "FFI.Tox.Tox" "toxcore-c-0.2.12-inplace" 'False) (C1 ('MetaCons "SavedataTypeNone" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "SavedataTypeToxSave" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "SavedataTypeSecretKey" 'PrefixI 'False) (U1 :: Type -> Type)))

data ProxyType Source #

Instances

Instances details
Bounded ProxyType Source # 
Instance details

Defined in FFI.Tox.Tox

Enum ProxyType Source # 
Instance details

Defined in FFI.Tox.Tox

Eq ProxyType Source # 
Instance details

Defined in FFI.Tox.Tox

Ord ProxyType Source # 
Instance details

Defined in FFI.Tox.Tox

Read ProxyType Source # 
Instance details

Defined in FFI.Tox.Tox

Show ProxyType Source # 
Instance details

Defined in FFI.Tox.Tox

Generic ProxyType Source # 
Instance details

Defined in FFI.Tox.Tox

Associated Types

type Rep ProxyType :: Type -> Type #

Arbitrary ProxyType Source # 
Instance details

Defined in FFI.Tox.Tox

MessagePack ProxyType Source # 
Instance details

Defined in FFI.Tox.Tox

type Rep ProxyType Source # 
Instance details

Defined in FFI.Tox.Tox

type Rep ProxyType = D1 ('MetaData "ProxyType" "FFI.Tox.Tox" "toxcore-c-0.2.12-inplace" 'False) (C1 ('MetaCons "ProxyTypeNone" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "ProxyTypeHttp" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ProxyTypeSocks5" 'PrefixI 'False) (U1 :: Type -> Type)))

data MessageType Source #

Instances

Instances details
Bounded MessageType Source # 
Instance details

Defined in FFI.Tox.Tox

Enum MessageType Source # 
Instance details

Defined in FFI.Tox.Tox

Eq MessageType Source # 
Instance details

Defined in FFI.Tox.Tox

Ord MessageType Source # 
Instance details

Defined in FFI.Tox.Tox

Read MessageType Source # 
Instance details

Defined in FFI.Tox.Tox

Show MessageType Source # 
Instance details

Defined in FFI.Tox.Tox

Generic MessageType Source # 
Instance details

Defined in FFI.Tox.Tox

Associated Types

type Rep MessageType :: Type -> Type #

Arbitrary MessageType Source # 
Instance details

Defined in FFI.Tox.Tox

MessagePack MessageType Source # 
Instance details

Defined in FFI.Tox.Tox

type Rep MessageType Source # 
Instance details

Defined in FFI.Tox.Tox

type Rep MessageType = D1 ('MetaData "MessageType" "FFI.Tox.Tox" "toxcore-c-0.2.12-inplace" 'False) (C1 ('MetaCons "MessageTypeNormal" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "MessageTypeAction" 'PrefixI 'False) (U1 :: Type -> Type))

tox_max_filename_length :: Word32 Source #

Maximum file name length for file transfers.

tox_file_id_length :: Word32 Source #

The number of bytes in a file id.

tox_hash_length :: Word32 Source #

The number of bytes in a hash generated by tox_hash.

tox_max_custom_packet_size :: Word32 Source #

Maximum size of custom packets. TODO: should be LENGTH?

tox_max_message_length :: Word32 Source #

Maximum length of a single message after which it should be split.

tox_max_friend_request_length :: Word32 Source #

Maximum length of a friend request message in bytes.

tox_max_status_message_length :: Word32 Source #

Maximum length of a status message in bytes.

tox_max_name_length :: Word32 Source #

Maximum length of a nickname in bytes.

tox_address_size :: Word32 Source #

The size of a Tox address in bytes. Tox addresses are in the format [Public Key (tox_public_key_size bytes)][nospam (4 bytes)][checksum (2 bytes)].

The checksum is computed over the Public Key and the nospam value. The first byte is an XOR of all the even bytes (0, 2, 4, ...), the second byte is an XOR of all the odd bytes (1, 3, 5, ...) of the Public Key and nospam.

tox_secret_key_size :: Word32 Source #

The size of a Tox Secret Key in bytes.

tox_public_key_size :: Word32 Source #

The size of a Tox Public Key in bytes.

data ErrOptionsNew Source #

Constructors

ErrOptionsNewMalloc 

Instances

Instances details
Bounded ErrOptionsNew Source # 
Instance details

Defined in Network.Tox.C.Options

Enum ErrOptionsNew Source # 
Instance details

Defined in Network.Tox.C.Options

Eq ErrOptionsNew Source # 
Instance details

Defined in Network.Tox.C.Options

Ord ErrOptionsNew Source # 
Instance details

Defined in Network.Tox.C.Options

Read ErrOptionsNew Source # 
Instance details

Defined in Network.Tox.C.Options

Show ErrOptionsNew Source # 
Instance details

Defined in Network.Tox.C.Options

data Options Source #

Instances

Instances details
Eq Options Source # 
Instance details

Defined in Network.Tox.C.Options

Methods

(==) :: Options -> Options -> Bool #

(/=) :: Options -> Options -> Bool #

Read Options Source # 
Instance details

Defined in Network.Tox.C.Options

Show Options Source # 
Instance details

Defined in Network.Tox.C.Options

Generic Options Source # 
Instance details

Defined in Network.Tox.C.Options

Associated Types

type Rep Options :: Type -> Type #

Methods

from :: Options -> Rep Options x #

to :: Rep Options x -> Options #

type Rep Options Source # 
Instance details

Defined in Network.Tox.C.Options

toxOptionsFree :: OptionsPtr -> IO () Source #

Releases all resources associated with an options objects.

Passing a pointer that was not returned by tox_options_new results in undefined behaviour.

tox_options_new :: CErr ErrOptionsNew -> IO OptionsPtr Source #

Allocates a new Tox_Options object and initialises it with the default options. This function can be used to preserve long term ABI compatibility by giving the responsibility of allocation and deallocation to the Tox library.

Objects returned from this function must be freed using the tox_options_free function.

@return A new OptionsPtr with default options or nullPtr on failure.

peekToxOptions :: OptionsPtr -> IO Options Source #

Read Options from an OptionsPtr.

If the passed pointer is nullPtr, the behaviour is undefined.

withOptions :: Options -> (OptionsPtr -> IO r) -> IO (Either ErrOptionsNew r) Source #

Allocate a new C options pointer, fills in the values from Options, calls the processor function, and deallocates the options pointer.

The OptionsPtr passed to the processor function is never nullPtr. If allocation fails, the IO action evaluates to Left with an appropriate error code.

newtype FixedByteString (size :: Nat) Source #

Instances

Instances details
Eq (FixedByteString size) Source # 
Instance details

Defined in Network.Tox.C.Type

Methods

(==) :: FixedByteString size -> FixedByteString size -> Bool #

(/=) :: FixedByteString size -> FixedByteString size -> Bool #

Ord (FixedByteString size) Source # 
Instance details

Defined in Network.Tox.C.Type

Show (FixedByteString size) Source # 
Instance details

Defined in Network.Tox.C.Type

Generic (FixedByteString size) Source # 
Instance details

Defined in Network.Tox.C.Type

Associated Types

type Rep (FixedByteString size) :: Type -> Type #

Methods

from :: FixedByteString size -> Rep (FixedByteString size) x #

to :: Rep (FixedByteString size) x -> FixedByteString size #

Arbitrary (FixedByteString size) Source # 
Instance details

Defined in Network.Tox.C.Type

MessagePack (FixedByteString size) Source # 
Instance details

Defined in Network.Tox.C.Type

type Rep (FixedByteString size) Source # 
Instance details

Defined in Network.Tox.C.Type

type Rep (FixedByteString size) = D1 ('MetaData "FixedByteString" "Network.Tox.C.Type" "toxcore-c-0.2.12-inplace" 'True) (C1 ('MetaCons "FixedByteString" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ByteString)))

tox_version_is_compatible :: Word32 -> Word32 -> Word32 -> Bool Source #

Return whether the compiled library version is compatible with the passed version numbers.

tox_version_patch :: Word32 Source #

The patch or revision number. Incremented when bugfixes are applied without changing any functionality or API or ABI.

tox_version_minor :: Word32 Source #

The minor version number. Incremented when functionality is added without breaking the API or ABI. Set to 0 when the major version number is incremented.

tox_version_major :: Word32 Source #

The major version number. Incremented when the API or ABI changes in an incompatible way.

data Events Source #

Constructors

Events [Event] 

Instances

Instances details
Eq Events Source # 
Instance details

Defined in Network.Tox.Types.Events

Methods

(==) :: Events -> Events -> Bool #

(/=) :: Events -> Events -> Bool #

Ord Events Source # 
Instance details

Defined in Network.Tox.Types.Events

Show Events Source # 
Instance details

Defined in Network.Tox.Types.Events

Generic Events Source # 
Instance details

Defined in Network.Tox.Types.Events

Associated Types

type Rep Events :: Type -> Type #

Methods

from :: Events -> Rep Events x #

to :: Rep Events x -> Events #

Arbitrary Events Source # 
Instance details

Defined in Network.Tox.Types.Events

MessagePack Events Source # 
Instance details

Defined in Network.Tox.Types.Events

type Rep Events Source # 
Instance details

Defined in Network.Tox.Types.Events

type Rep Events = D1 ('MetaData "Events" "Network.Tox.Types.Events" "toxcore-c-0.2.12-inplace" 'False) (C1 ('MetaCons "Events" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [Event])))

data Event Source #

Constructors

SelfConnectionStatus 
FriendRequest 
FriendConnectionStatus 
FriendLossyPacket 
FriendLosslessPacket 
FriendName 
FriendStatus 
FriendStatusMessage 
FriendMessage 
FriendReadReceipt 
FriendTyping 
FileChunkRequest 
FileRecv 
FileRecvChunk 
FileRecvControl 
ConferenceInvite 
ConferenceConnected 
ConferencePeerListChanged 
ConferencePeerName 
ConferenceTitle 
ConferenceMessage 
GroupPeerName 
GroupPeerStatus 
GroupTopic 
GroupPrivacyState 
GroupVoiceState 
GroupTopicLock 
GroupPeerLimit 
GroupPassword 
GroupMessage 
GroupPrivateMessage 
GroupCustomPacket 
GroupCustomPrivatePacket 
GroupInvite 
GroupPeerJoin 
GroupPeerExit 
GroupSelfJoin 

Fields

GroupJoinFail 
GroupModeration 
DhtGetNodesResponse 

Instances

Instances details
Eq Event Source # 
Instance details

Defined in Network.Tox.Types.Events

Methods

(==) :: Event -> Event -> Bool #

(/=) :: Event -> Event -> Bool #

Ord Event Source # 
Instance details

Defined in Network.Tox.Types.Events

Methods

compare :: Event -> Event -> Ordering #

(<) :: Event -> Event -> Bool #

(<=) :: Event -> Event -> Bool #

(>) :: Event -> Event -> Bool #

(>=) :: Event -> Event -> Bool #

max :: Event -> Event -> Event #

min :: Event -> Event -> Event #

Show Event Source # 
Instance details

Defined in Network.Tox.Types.Events

Methods

showsPrec :: Int -> Event -> ShowS #

show :: Event -> String #

showList :: [Event] -> ShowS #

Generic Event Source # 
Instance details

Defined in Network.Tox.Types.Events

Associated Types

type Rep Event :: Type -> Type #

Methods

from :: Event -> Rep Event x #

to :: Rep Event x -> Event #

Arbitrary Event Source # 
Instance details

Defined in Network.Tox.Types.Events

Methods

arbitrary :: Gen Event #

shrink :: Event -> [Event] #

MessagePack Event Source # 
Instance details

Defined in Network.Tox.Types.Events

type Rep Event Source # 
Instance details

Defined in Network.Tox.Types.Events

type Rep Event = D1 ('MetaData "Event" "Network.Tox.Types.Events" "toxcore-c-0.2.12-inplace" 'False) (((((C1 ('MetaCons "SelfConnectionStatus" 'PrefixI 'True) (S1 ('MetaSel ('Just "connectionStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Connection)) :+: C1 ('MetaCons "FriendRequest" 'PrefixI 'True) (S1 ('MetaSel ('Just "publicKey") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 PublicKey) :*: S1 ('MetaSel ('Just "message") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 ByteString))) :+: (C1 ('MetaCons "FriendConnectionStatus" 'PrefixI 'True) (S1 ('MetaSel ('Just "friendNumber") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Word32) :*: S1 ('MetaSel ('Just "connectionStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Connection)) :+: (C1 ('MetaCons "FriendLossyPacket" 'PrefixI 'True) (S1 ('MetaSel ('Just "friendNumber") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Word32) :*: S1 ('MetaSel ('Just "data'") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 ByteString)) :+: C1 ('MetaCons "FriendLosslessPacket" 'PrefixI 'True) (S1 ('MetaSel ('Just "friendNumber") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Word32) :*: S1 ('MetaSel ('Just "data'") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 ByteString))))) :+: ((C1 ('MetaCons "FriendName" 'PrefixI 'True) (S1 ('MetaSel ('Just "friendNumber") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Word32) :*: S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 ByteString)) :+: C1 ('MetaCons "FriendStatus" 'PrefixI 'True) (S1 ('MetaSel ('Just "friendNumber") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Word32) :*: S1 ('MetaSel ('Just "status") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 UserStatus))) :+: (C1 ('MetaCons "FriendStatusMessage" 'PrefixI 'True) (S1 ('MetaSel ('Just "friendNumber") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Word32) :*: S1 ('MetaSel ('Just "statusMessage") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 ByteString)) :+: (C1 ('MetaCons "FriendMessage" 'PrefixI 'True) (S1 ('MetaSel ('Just "friendNumber") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Word32) :*: (S1 ('MetaSel ('Just "messageType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 MessageType) :*: S1 ('MetaSel ('Just "message") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 ByteString))) :+: C1 ('MetaCons "FriendReadReceipt" 'PrefixI 'True) (S1 ('MetaSel ('Just "friendNumber") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Word32) :*: S1 ('MetaSel ('Just "messageId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Word32)))))) :+: (((C1 ('MetaCons "FriendTyping" 'PrefixI 'True) (S1 ('MetaSel ('Just "friendNumber") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Word32) :*: S1 ('MetaSel ('Just "typing") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Bool)) :+: C1 ('MetaCons "FileChunkRequest" 'PrefixI 'True) ((S1 ('MetaSel ('Just "friendNumber") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Word32) :*: S1 ('MetaSel ('Just "fileNumber") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Word32)) :*: (S1 ('MetaSel ('Just "position") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Word64) :*: S1 ('MetaSel ('Just "length") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Word16)))) :+: (C1 ('MetaCons "FileRecv" 'PrefixI 'True) ((S1 ('MetaSel ('Just "friendNumber") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Word32) :*: S1 ('MetaSel ('Just "fileNumber") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Word32)) :*: (S1 ('MetaSel ('Just "kind") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Word32) :*: (S1 ('MetaSel ('Just "fileSize") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Word64) :*: S1 ('MetaSel ('Just "filename") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 ByteString)))) :+: (C1 ('MetaCons "FileRecvChunk" 'PrefixI 'True) ((S1 ('MetaSel ('Just "friendNumber") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Word32) :*: S1 ('MetaSel ('Just "fileNumber") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Word32)) :*: (S1 ('MetaSel ('Just "position") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Word64) :*: S1 ('MetaSel ('Just "data'") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 ByteString))) :+: C1 ('MetaCons "FileRecvControl" 'PrefixI 'True) (S1 ('MetaSel ('Just "friendNumber") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Word32) :*: (S1 ('MetaSel ('Just "fileNumber") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Word32) :*: S1 ('MetaSel ('Just "control") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 FileControl)))))) :+: ((C1 ('MetaCons "ConferenceInvite" 'PrefixI 'True) (S1 ('MetaSel ('Just "friendNumber") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Word32) :*: (S1 ('MetaSel ('Just "conferenceType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 ConferenceType) :*: S1 ('MetaSel ('Just "cookie") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 ByteString))) :+: C1 ('MetaCons "ConferenceConnected" 'PrefixI 'True) (S1 ('MetaSel ('Just "conferenceNumber") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Word32))) :+: (C1 ('MetaCons "ConferencePeerListChanged" 'PrefixI 'True) (S1 ('MetaSel ('Just "conferenceNumber") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Word32)) :+: (C1 ('MetaCons "ConferencePeerName" 'PrefixI 'True) (S1 ('MetaSel ('Just "conferenceNumber") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Word32) :*: (S1 ('MetaSel ('Just "peerNumber") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Word32) :*: S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 ByteString))) :+: C1 ('MetaCons "ConferenceTitle" 'PrefixI 'True) (S1 ('MetaSel ('Just "conferenceNumber") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Word32) :*: (S1 ('MetaSel ('Just "peerNumber") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Word32) :*: S1 ('MetaSel ('Just "title") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 ByteString)))))))) :+: ((((C1 ('MetaCons "ConferenceMessage" 'PrefixI 'True) ((S1 ('MetaSel ('Just "conferenceNumber") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Word32) :*: S1 ('MetaSel ('Just "peerNumber") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Word32)) :*: (S1 ('MetaSel ('Just "messageType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 MessageType) :*: S1 ('MetaSel ('Just "message") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 ByteString))) :+: C1 ('MetaCons "GroupPeerName" 'PrefixI 'True) (S1 ('MetaSel ('Just "groupNumber") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Word32) :*: (S1 ('MetaSel ('Just "peerId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Word32) :*: S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 ByteString)))) :+: (C1 ('MetaCons "GroupPeerStatus" 'PrefixI 'True) (S1 ('MetaSel ('Just "groupNumber") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Word32) :*: (S1 ('MetaSel ('Just "peerId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Word32) :*: S1 ('MetaSel ('Just "status") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 UserStatus))) :+: (C1 ('MetaCons "GroupTopic" 'PrefixI 'True) (S1 ('MetaSel ('Just "groupNumber") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Word32) :*: (S1 ('MetaSel ('Just "peerId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Word32) :*: S1 ('MetaSel ('Just "topic") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 ByteString))) :+: C1 ('MetaCons "GroupPrivacyState" 'PrefixI 'True) (S1 ('MetaSel ('Just "groupNumber") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Word32) :*: S1 ('MetaSel ('Just "privacyState") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 GroupPrivacyState))))) :+: ((C1 ('MetaCons "GroupVoiceState" 'PrefixI 'True) (S1 ('MetaSel ('Just "groupNumber") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Word32) :*: S1 ('MetaSel ('Just "voiceState") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 GroupVoiceState)) :+: C1 ('MetaCons "GroupTopicLock" 'PrefixI 'True) (S1 ('MetaSel ('Just "groupNumber") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Word32) :*: S1 ('MetaSel ('Just "topicLock") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 GroupTopicLock))) :+: (C1 ('MetaCons "GroupPeerLimit" 'PrefixI 'True) (S1 ('MetaSel ('Just "groupNumber") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Word32) :*: S1 ('MetaSel ('Just "peerLimit") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Word32)) :+: (C1 ('MetaCons "GroupPassword" 'PrefixI 'True) (S1 ('MetaSel ('Just "groupNumber") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Word32) :*: S1 ('MetaSel ('Just "password") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 ByteString)) :+: C1 ('MetaCons "GroupMessage" 'PrefixI 'True) ((S1 ('MetaSel ('Just "groupNumber") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Word32) :*: S1 ('MetaSel ('Just "peerId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Word32)) :*: (S1 ('MetaSel ('Just "messageType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 MessageType) :*: (S1 ('MetaSel ('Just "message") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 ByteString) :*: S1 ('MetaSel ('Just "messageId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Word32)))))))) :+: (((C1 ('MetaCons "GroupPrivateMessage" 'PrefixI 'True) ((S1 ('MetaSel ('Just "groupNumber") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Word32) :*: S1 ('MetaSel ('Just "peerId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Word32)) :*: (S1 ('MetaSel ('Just "messageType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 MessageType) :*: S1 ('MetaSel ('Just "message") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 ByteString))) :+: C1 ('MetaCons "GroupCustomPacket" 'PrefixI 'True) (S1 ('MetaSel ('Just "groupNumber") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Word32) :*: (S1 ('MetaSel ('Just "peerId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Word32) :*: S1 ('MetaSel ('Just "data'") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 ByteString)))) :+: (C1 ('MetaCons "GroupCustomPrivatePacket" 'PrefixI 'True) (S1 ('MetaSel ('Just "groupNumber") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Word32) :*: (S1 ('MetaSel ('Just "peerId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Word32) :*: S1 ('MetaSel ('Just "data'") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 ByteString))) :+: (C1 ('MetaCons "GroupInvite" 'PrefixI 'True) (S1 ('MetaSel ('Just "groupNumber") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Word32) :*: (S1 ('MetaSel ('Just "inviteData") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 ByteString) :*: S1 ('MetaSel ('Just "groupName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 ByteString))) :+: C1 ('MetaCons "GroupPeerJoin" 'PrefixI 'True) (S1 ('MetaSel ('Just "groupNumber") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Word32) :*: S1 ('MetaSel ('Just "peerId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Word32))))) :+: ((C1 ('MetaCons "GroupPeerExit" 'PrefixI 'True) ((S1 ('MetaSel ('Just "groupNumber") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Word32) :*: S1 ('MetaSel ('Just "peerId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Word32)) :*: (S1 ('MetaSel ('Just "exitType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 GroupExitType) :*: (S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 ByteString) :*: S1 ('MetaSel ('Just "partMessage") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 ByteString)))) :+: C1 ('MetaCons "GroupSelfJoin" 'PrefixI 'True) (S1 ('MetaSel ('Just "groupNumber") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Word32))) :+: (C1 ('MetaCons "GroupJoinFail" 'PrefixI 'True) (S1 ('MetaSel ('Just "groupNumber") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Word32) :*: S1 ('MetaSel ('Just "failType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 GroupJoinFail)) :+: (C1 ('MetaCons "GroupModeration" 'PrefixI 'True) ((S1 ('MetaSel ('Just "groupNumber") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Word32) :*: S1 ('MetaSel ('Just "sourcePeerId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Word32)) :*: (S1 ('MetaSel ('Just "targetPeerId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Word32) :*: S1 ('MetaSel ('Just "modType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 GroupModEvent))) :+: C1 ('MetaCons "DhtGetNodesResponse" 'PrefixI 'True) (S1 ('MetaSel ('Just "publicKey") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 PublicKey) :*: (S1 ('MetaSel ('Just "ip") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 ByteString) :*: S1 ('MetaSel ('Just "port") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Word16)))))))))

data ErrEventsIterate Source #

Common error codes for all functions that set a piece of user-visible client information.

Instances

Instances details
Bounded ErrEventsIterate Source # 
Instance details

Defined in Network.Tox.C.Tox

Enum ErrEventsIterate Source # 
Instance details

Defined in Network.Tox.C.Tox

Eq ErrEventsIterate Source # 
Instance details

Defined in Network.Tox.C.Tox

Ord ErrEventsIterate Source # 
Instance details

Defined in Network.Tox.C.Tox

Read ErrEventsIterate Source # 
Instance details

Defined in Network.Tox.C.Tox

Show ErrEventsIterate Source # 
Instance details

Defined in Network.Tox.C.Tox

toxBootstrap :: ToxPtr -> String -> Word16 -> ByteString -> IO (Either ErrBootstrap Bool) Source #

Sends a "get nodes" request to the given bootstrap node with IP, port, and public key to setup connections.

This function will attempt to connect to the node using UDP. You must use this function even if Options.udp_enabled was set to false.

param address The hostname or IP address (IPv4 or IPv6) of the node. param port The port on the host on which the bootstrap Tox instance is listening. param public_key The long term public key of the bootstrap node (tox_public_key_size bytes). return true on success.

toxAddTcpRelay :: ToxPtr -> String -> Word16 -> ByteString -> IO (Either ErrBootstrap Bool) Source #

Adds additional host:port pair as TCP relay.

This function can be used to initiate TCP connections to different ports on the same bootstrap node, or to add TCP relays without using them as bootstrap nodes.

param address The hostname or IP address (IPv4 or IPv6) of the TCP relay. param port The port on the host on which the TCP relay is listening. param public_key The long term public key of the TCP relay (tox_public_key_size bytes). return true on success.

toxIterationInterval :: ToxPtr -> IO Word32 Source #

Return the time in milliseconds before tox_iterate() should be called again for optimal performance.

toxSelfGetAddress :: ToxPtr -> IO ByteString Source #

Writes the Tox friend address of the client to a byte array. The address is not in human-readable format. If a client wants to display the address, formatting is required.

param address A memory region of at least tox_address_size bytes. If this parameter is nullPtr, this function has no effect. see tox_address_size for the address format.

toxSelfSetNospam :: ToxPtr -> Word32 -> IO () Source #

Set the 4-byte nospam part of the address.

@param nospam Any 32 bit unsigned integer.

toxSelfGetNospam :: ToxPtr -> IO Word32 Source #

Get the 4-byte nospam part of the address.

toxSelfGetPublicKey :: ToxPtr -> IO ByteString Source #

Copy the Tox Public Key (long term) from the Tox object.

@param public_key A memory region of at least tox_public_key_size bytes. If this parameter is nullPtr, this function has no effect.

toxSelfGetSecretKey :: ToxPtr -> IO ByteString Source #

Copy the Tox Secret Key from the Tox object.

@param secret_key A memory region of at least tox_secret_key_size bytes. If this parameter is nullPtr, this function has no effect.

toxSelfSetName :: ToxPtr -> ByteString -> IO (Either ErrSetInfo Bool) Source #

Set the nickname for the Tox client.

Nickname length cannot exceed tox_max_name_length. If length is 0, the name parameter is ignored (it can be nullPtr), and the nickname is set back to empty.

param name A byte array containing the new nickname. param length The size of the name byte array.

@return true on success.

toxSelfGetName :: ToxPtr -> IO ByteString Source #

Write the nickname set by tox_self_set_name to a byte array.

If no nickname was set before calling this function, the name is empty, and this function has no effect.

Call tox_self_get_name_size to find out how much memory to allocate for the result.

@param name A valid memory location large enough to hold the nickname. If this parameter is NULL, the function has no effect.

toxSelfSetStatusMessage :: ToxPtr -> ByteString -> IO (Either ErrSetInfo Bool) Source #

Set the client's status message.

Status message length cannot exceed tox_max_status_message_length. If length is 0, the status parameter is ignored (it can be nullPtr), and the user status is set back to empty.

toxSelfGetStatusMessage :: ToxPtr -> IO ByteString Source #

Write the status message set by tox_self_set_status_message to a byte array.

If no status message was set before calling this function, the status is empty, and this function has no effect.

Call tox_self_get_status_message_size to find out how much memory to allocate for the result.

@param status_message A valid memory location large enough to hold the status message. If this parameter is NULL, the function has no effect.

toxSelfSetStatus :: ToxPtr -> UserStatus -> IO () Source #

Set the client's user status.

@param user_status One of the user statuses listed in the enumeration above.

toxFriendAdd :: ToxPtr -> ByteString -> ByteString -> IO (Either ErrFriendAdd Word32) Source #

Add a friend to the friend list and send a friend request.

A friend request message must be at least 1 byte long and at most tox_max_friend_request_length.

Friend numbers are unique identifiers used in all functions that operate on friends. Once added, a friend number is stable for the lifetime of the Tox object. After saving the state and reloading it, the friend numbers may not be the same as before. Deleting a friend creates a gap in the friend number set, which is filled by the next adding of a friend. Any pattern in friend numbers should not be relied on.

If more than INT32_MAX friends are added, this function causes undefined behaviour.

param address The address of the friend (returned by tox_self_get_address of the friend you wish to add) it must be tox_address_size bytes. param message The message that will be sent along with the friend request. @param length The length of the data byte array.

@return the friend number on success, UINT32_MAX on failure.

toxFriendAddNorequest :: ToxPtr -> ByteString -> IO (Either ErrFriendAdd Word32) Source #

Add a friend without sending a friend request.

This function is used to add a friend in response to a friend request. If the client receives a friend request, it can be reasonably sure that the other client added this client as a friend, eliminating the need for a friend request.

This function is also useful in a situation where both instances are controlled by the same entity, so that this entity can perform the mutual friend adding. In this case, there is no need for a friend request, either.

@param public_key A byte array of length tox_public_key_size containing the Public Key (not the Address) of the friend to add.

return the friend number on success, UINT32_MAX on failure. see tox_friend_add for a more detailed description of friend numbers.

toxFriendDelete :: ToxPtr -> Word32 -> IO (Either ErrFriendDelete Bool) Source #

Remove a friend from the friend list.

This does not notify the friend of their deletion. After calling this function, this client will appear offline to the friend and no communication can occur between the two.

@param friend_number Friend number for the friend to be deleted.

@return true on success.

toxFriendByPublicKey :: ToxPtr -> ByteString -> IO (Either ErrFriendByPublicKey Word32) Source #

Return the friend number associated with that Public Key.

return the friend number on success, UINT32_MAX on failure. param public_key A byte array containing the Public Key.

toxFriendExists :: ToxPtr -> Word32 -> IO Bool Source #

Checks if a friend with the given friend number exists and returns true if it does.

toxSelfGetFriendList :: ToxPtr -> IO [Word32] Source #

Copy a list of valid friend numbers into an array.

Call tox_self_get_friend_list_size to determine the number of elements to allocate.

@param list A memory region with enough space to hold the friend list. If this parameter is nullPtr, this function has no effect.

toxFriendGetPublicKey :: ToxPtr -> Word32 -> IO (Either ErrFriendGetPublicKey ByteString) Source #

Copies the Public Key associated with a given friend number to a byte array.

param friend_number The friend number you want the Public Key of. param public_key A memory region of at least tox_public_key_size bytes. If this parameter is nullPtr, this function has no effect.

@return true on success.

toxFriendGetLastOnline :: ToxPtr -> Word32 -> IO (Either ErrFriendGetLastOnline EpochTime) Source #

Return a unix-time timestamp of the last time the friend associated with a given friend number was seen online. This function will return UINT64_MAX on error.

@param friend_number The friend number you want to query.

toxFriendGetName :: ToxPtr -> Word32 -> IO (Either ErrFriendQuery ByteString) Source #

Write the name of the friend designated by the given friend number to a byte array.

Call tox_friend_get_name_size to determine the allocation size for the name parameter.

The data written to name is equal to the data received by the last friend_name callback.

@param name A valid memory region large enough to store the friend's name.

@return true on success.

toxFriendGetStatusMessage :: ToxPtr -> Word32 -> IO (Either ErrFriendQuery ByteString) Source #

Write the status message of the friend designated by the given friend number to a byte array.

Call tox_friend_get_status_message_size to determine the allocation size for the status_name parameter.

The data written to status_message is equal to the data received by the last friend_status_message callback.

@param status_message A valid memory region large enough to store the friend's status message.

toxFriendGetConnectionStatus :: ToxPtr -> Word32 -> IO (Either ErrFriendQuery Connection) Source #

Check whether a friend is currently connected to this client.

The result of this function is equal to the last value received by the friend_connection_status callback.

@param friend_number The friend number for which to query the connection status.

@return the friend's connection status as it was received through the friend_connection_status event.

toxFriendGetTyping :: ToxPtr -> Word32 -> IO (Either ErrFriendQuery Bool) Source #

Check whether a friend is currently typing a message.

@param friend_number The friend number for which to query the typing status.

return true if the friend is typing. return false if the friend is not typing, or the friend number was invalid. Inspect the error code to determine which case it is.

toxSelfSetTyping :: ToxPtr -> Word32 -> Bool -> IO (Either ErrSetTyping Bool) Source #

Set the client's typing status for a friend.

The client is responsible for turning it on or off.

param friend_number The friend to which the client is typing a message. param typing The typing status. True means the client is typing.

@return true on success.

toxFriendSendMessage :: ToxPtr -> Word32 -> MessageType -> ByteString -> IO (Either ErrFriendSendMessage Word32) Source #

Send a text chat message to an online friend.

This function creates a chat message packet and pushes it into the send queue.

The message length may not exceed tox_max_message_length. Larger messages must be split by the client and sent as separate messages. Other clients can then reassemble the fragments. Messages may not be empty.

The return value of this function is the message ID. If a read receipt is received, the triggered friend_read_receipt event will be passed this message ID.

Message IDs are unique per friend. The first message ID is 0. Message IDs are incremented by 1 each time a message is sent. If UINT32_MAX messages were sent, the next message ID is 0.

param type Message type (normal, action, ...). param friend_number The friend number of the friend to send the message to. param message A non-nullPtr pointer to the first element of a byte array containing the message text. param length Length of the message to be sent.

toxHash :: ByteString -> IO ByteString Source #

Generates a cryptographic hash of the given data.

This function may be used by clients for any purpose, but is provided primarily for validating cached avatars. This use is highly recommended to avoid unnecessary avatar updates.

If hash is nullPtr or data is nullPtr while length is not 0 the function returns false, otherwise it returns true.

This function is a wrapper to internal message-digest functions.

param hash A valid memory location the hash data. It must be at least tox_hash_length bytes in size. param data Data to be hashed or nullPtr. @param length Size of the data array or 0.

@return true if hash was not nullPtr.

toxFileControl :: ToxPtr -> Word32 -> Word32 -> FileControl -> IO (Either ErrFileControl Bool) Source #

Sends a file control command to a friend for a given file transfer.

param friend_number The friend number of the friend the file is being transferred to or received from. param file_number The friend-specific identifier for the file transfer. @param control The control command to send.

@return true on success.

toxFileSeek :: ToxPtr -> Word32 -> Word32 -> Word64 -> IO (Either ErrFileSeek Bool) Source #

Sends a file seek control command to a friend for a given file transfer.

This function can only be called to resume a file transfer right before FileControlResume is sent.

param friend_number The friend number of the friend the file is being received from. param file_number The friend-specific identifier for the file transfer. @param position The position that the file should be seeked to.

toxFileGetFileId :: ToxPtr -> Word32 -> Word32 -> IO (Either ErrFileGet ByteString) Source #

Copy the file id associated to the file transfer to a byte array.

param friend_number The friend number of the friend the file is being transferred to or received from. param file_number The friend-specific identifier for the file transfer. @param file_id A memory region of at least tox_file_id_length bytes. If this parameter is nullPtr, this function has no effect.

@return true on success.

toxFileSend :: ToxPtr -> Word32 -> FileKind -> Word64 -> ByteString -> IO (Either ErrFileSend Word32) Source #

Send a file transmission request.

Maximum filename length is tox_max_filename_length bytes. The filename should generally just be a file name, not a path with directory names.

If a non-UINT64_MAX file size is provided, it can be used by both sides to determine the sending progress. File size can be set to UINT64_MAX for streaming data of unknown size.

File transmission occurs in chunks, which are requested through the file_chunk_request event.

When a friend goes offline, all file transfers associated with the friend are purged from core.

If the file contents change during a transfer, the behaviour is unspecified in general. What will actually happen depends on the mode in which the file was modified and how the client determines the file size.

  • If the file size was increased
  • and sending mode was streaming (file_size = UINT64_MAX), the behaviour will be as expected.
  • and sending mode was file (file_size != UINT64_MAX), the file_chunk_request callback will receive length = 0 when Core thinks the file transfer has finished. If the client remembers the file size as it was when sending the request, it will terminate the transfer normally. If the client re-reads the size, it will think the friend cancelled the transfer.
  • If the file size was decreased
  • and sending mode was streaming, the behaviour is as expected.
  • and sending mode was file, the callback will return 0 at the new (earlier) end-of-file, signalling to the friend that the transfer was cancelled.
  • If the file contents were modified
  • at a position before the current read, the two files (local and remote) will differ after the transfer terminates.
  • at a position after the current read, the file transfer will succeed as expected.
  • In either case, both sides will regard the transfer as complete and successful.

param friend_number The friend number of the friend the file send request should be sent to. param kind The meaning of the file to be sent. param file_size Size in bytes of the file the client wants to send, UINT64_MAX if unknown or streaming. param file_id A file identifier of length tox_file_id_length that can be used to uniquely identify file transfers across core restarts. If nullPtr, a random one will be generated by core. It can then be obtained by using tox_file_get_file_id(). param filename Name of the file. Does not need to be the actual name. This name will be sent along with the file send request. param filename_length Size in bytes of the filename.

@return A file number used as an identifier in subsequent callbacks. This number is per friend. File numbers are reused after a transfer terminates. On failure, this function returns UINT32_MAX. Any pattern in file numbers should not be relied on.

toxFileSendChunk :: ToxPtr -> Word32 -> Word32 -> Word64 -> ByteString -> IO (Either ErrFileSendChunk Bool) Source #

Send a chunk of file data to a friend.

This function is called in response to the file_chunk_request callback. The length parameter should be equal to the one received though the callback. If it is zero, the transfer is assumed complete. For files with known size, Core will know that the transfer is complete after the last byte has been received, so it is not necessary (though not harmful) to send a zero-length chunk to terminate. For streams, core will know that the transfer is finished if a chunk with length less than the length requested in the callback is sent.

param friend_number The friend number of the receiving friend for this file. param file_number The file transfer identifier returned by tox_file_send. param position The file or stream position from which to continue reading. return true on success.

toxConferenceNew :: ToxPtr -> IO (Either ErrConferenceNew Word32) Source #

Creates a new conference.

This function creates a new text conference.

@return conference number on success, or UINT32_MAX on failure.

toxConferenceDelete :: ToxPtr -> Word32 -> IO (Either ErrConferenceDelete Bool) Source #

This function deletes a conference.

@param conference_number The conference number of the conference to be deleted.

@return true on success.

toxConferencePeerCount :: ToxPtr -> Word32 -> IO (Either ErrConferencePeerQuery Word32) Source #

Return the number of peers in the conference. Return value is unspecified on failure.

toxConferencePeerGetName :: ToxPtr -> Word32 -> Word32 -> IO (Either ErrConferencePeerQuery ByteString) Source #

Copy the name of peer_number who is in conference_number to name. name must be at least TOX_MAX_NAME_LENGTH long.

@return true on success.

toxConferencePeerGetPublicKey :: ToxPtr -> Word32 -> Word32 -> IO (Either ErrConferencePeerQuery ByteString) Source #

Copy the public key of peer_number who is in conference_number to public_key. public_key must be TOX_PUBLIC_KEY_SIZE long.

@return true on success.

toxConferencePeerNumberIsOurs :: ToxPtr -> Word32 -> Word32 -> IO (Either ErrConferencePeerQuery Bool) Source #

Return true if passed peer_number corresponds to our own.

toxConferenceInvite :: ToxPtr -> Word32 -> Word32 -> IO (Either ErrConferenceInvite Bool) Source #

Invites a friend to a conference.

param friend_number The friend number of the friend we want to invite. param conference_number The conference number of the conference we want to invite the friend to.

@return true on success.

toxConferenceJoin :: ToxPtr -> Word32 -> ByteString -> IO (Either ErrConferenceJoin Word32) Source #

Joins a conference that the client has been invited to.

param friend_number The friend number of the friend who sent the invite. param cookie Received via the conference_invite event. @param length The size of cookie.

@return conference number on success, UINT32_MAX on failure.

toxConferenceSendMessage :: ToxPtr -> Word32 -> MessageType -> ByteString -> IO (Either ErrConferenceSendMessage Bool) Source #

Send a text chat message to the conference.

This function creates a conference message packet and pushes it into the send queue.

The message length may not exceed TOX_MAX_MESSAGE_LENGTH. Larger messages must be split by the client and sent as separate messages. Other clients can then reassemble the fragments.

param conference_number The conference number of the conference the message is intended for. param type Message type (normal, action, ...). param message A non-NULL pointer to the first element of a byte array containing the message text. param length Length of the message to be sent.

@return true on success.

toxConferenceGetTitle :: ToxPtr -> Word32 -> IO (Either ErrConferenceTitle ByteString) Source #

Write the title designated by the given conference number to a byte array.

Call tox_conference_get_title_size to determine the allocation size for the title parameter.

The data written to title is equal to the data received by the last conference_title callback.

@param title A valid memory region large enough to store the title. If this parameter is NULL, this function has no effect.

@return true on success.

toxConferenceSetTitle :: ToxPtr -> Word32 -> ByteString -> IO (Either ErrConferenceTitle Bool) Source #

Set the conference title and broadcast it to the rest of the conference.

Title length cannot be longer than TOX_MAX_NAME_LENGTH.

@return true on success.

toxConferenceGetChatlist :: ToxPtr -> IO [Word32] Source #

Copy a list of valid conference IDs into the array chatlist. Determine how much space to allocate for the array with the tox_conference_get_chatlist_size function.

toxFriendLossyPacket :: ToxPtr -> Word32 -> ByteString -> IO (Either ErrFriendCustomPacket Bool) Source #

Send a custom lossy packet to a friend.

The first byte of data must be in the range 200-254. Maximum length of a custom packet is tox_max_custom_packet_size.

Lossy packets behave like UDP packets, meaning they might never reach the other side or might arrive more than once (if someone is messing with the connection) or might arrive in the wrong order.

Unless latency is an issue, it is recommended that you use lossless custom packets instead.

param friend_number The friend number of the friend this lossy packet should be sent to. param data A byte array containing the packet data. @param length The length of the packet data byte array.

@return true on success.

toxFriendLosslessPacket :: ToxPtr -> Word32 -> ByteString -> IO (Either ErrFriendCustomPacket Bool) Source #

Send a custom lossless packet to a friend.

The first byte of data must be in the range 160-191. Maximum length of a custom packet is tox_max_custom_packet_size.

Lossless packet behaviour is comparable to TCP (reliability, arrive in order) but with packets instead of a stream.

param friend_number The friend number of the friend this lossless packet should be sent to. param data A byte array containing the packet data. @param length The length of the packet data byte array.

@return true on success.

toxSelfGetDhtId :: ToxPtr -> IO ByteString Source #

Writes the temporary DHT public key of this instance to a byte array.

This can be used in combination with an externally accessible IP address and the bound port (from tox_self_get_udp_port) to run a temporary bootstrap node.

Be aware that every time a new instance is created, the DHT public key changes, meaning this cannot be used to run a permanent bootstrap node.

@param dht_id A memory region of at least tox_public_key_size bytes. If this parameter is nullPtr, this function has no effect.

toxSelfGetUdpPort :: ToxPtr -> IO (Either ErrGetPort Word16) Source #

Return the UDP port this Tox instance is bound to.

toxSelfGetTcpPort :: ToxPtr -> IO (Either ErrGetPort Word16) Source #

Return the TCP port this Tox instance is bound to. This is only relevant if the instance is acting as a TCP relay.