simplex-chat-6.5.0.7
Safe HaskellNone
LanguageHaskell2010

Simplex.Chat.Remote.Types

Synopsis

Documentation

data RemoteCrypto Source #

Constructors

RemoteCrypto 

Fields

getRemoteSndKeys :: RemoteCrypto -> STM (Word32, SbKeyNonce, SbKeyNonce) Source #

getRemoteRcvKeys :: RemoteCrypto -> Word32 -> STM (Either RemoteProtocolError (SbKeyNonce, SbKeyNonce)) Source #

data RemoteSignatures Source #

Constructors

RSSign 

Fields

RSVerify 

Fields

type SessionSeq = Int Source #

data RHPendingSession Source #

Constructors

RHPendingSession 

Fields

data RemoteHostSessionState Source #

Constructors

RHSStarting 
RHSConnecting 

Fields

RHSPendingConfirmation 

Fields

RHSConfirmed 

Fields

RHSConnected 

Fields

Instances

Instances details
FromJSON RemoteHostSessionState Source # 
Instance details

Defined in Simplex.Chat.Remote.Types

ToJSON RemoteHostSessionState Source # 
Instance details

Defined in Simplex.Chat.Remote.Types

Show RemoteHostSessionState Source # 
Instance details

Defined in Simplex.Chat.Remote.Types

tlsSessionCode :: forall (p :: TransportPeer). TLS p -> Text Source #

data RemoteProtocolError Source #

Constructors

RPEInvalidSize

size prefix is malformed

RPEInvalidJSON

failed to parse RemoteCommand or RemoteResponse

Fields

RPEInvalidBody 

Fields

PRESessionCode 
RPEIncompatibleEncoding 
RPEUnexpectedFile 
RPENoFile 
RPEFileSize 
RPEFileDigest 
RPEManySkippedIds Word32 
PREEarlierId Word32 
PREDuplicateId 
RPEUnexpectedResponse

Wrong response received for the command sent

Fields

RPEStoredFileExists

A file already exists in the destination position

PRERemoteControl 

Fields

RPEHTTP2 

Fields

RPEException 

Fields

Instances

Instances details
FromJSON RemoteProtocolError Source # 
Instance details

Defined in Simplex.Chat.Remote.Types

ToJSON RemoteProtocolError Source # 
Instance details

Defined in Simplex.Chat.Remote.Types

Exception RemoteProtocolError Source # 
Instance details

Defined in Simplex.Chat.Remote.Types

Methods

toException :: RemoteProtocolError -> SomeException

fromException :: SomeException -> Maybe RemoteProtocolError

displayException :: RemoteProtocolError -> String

Show RemoteProtocolError Source # 
Instance details

Defined in Simplex.Chat.Remote.Types

Methods

showsPrec :: Int -> RemoteProtocolError -> ShowS

show :: RemoteProtocolError -> String

showList :: [RemoteProtocolError] -> ShowS

AnyError RemoteProtocolError Source # 
Instance details

Defined in Simplex.Chat.Remote.Types

Methods

fromSomeException :: SomeException -> RemoteProtocolError

type RemoteHostId = Int64 Source #

data RHKey Source #

Constructors

RHNew 
RHId 

Instances

Instances details
FromJSON RHKey Source # 
Instance details

Defined in Simplex.Chat.Remote.Types

Methods

parseJSON :: Value -> Parser RHKey

parseJSONList :: Value -> Parser [RHKey]

omittedField :: Maybe RHKey

ToJSON RHKey Source # 
Instance details

Defined in Simplex.Chat.Remote.Types

Methods

toJSON :: RHKey -> Value

toEncoding :: RHKey -> Encoding

toJSONList :: [RHKey] -> Value

toEncodingList :: [RHKey] -> Encoding

omitField :: RHKey -> Bool

Show RHKey Source # 
Instance details

Defined in Simplex.Chat.Remote.Types

Methods

showsPrec :: Int -> RHKey -> ShowS

show :: RHKey -> String

showList :: [RHKey] -> ShowS

Eq RHKey Source # 
Instance details

Defined in Simplex.Chat.Remote.Types

Methods

(==) :: RHKey -> RHKey -> Bool

(/=) :: RHKey -> RHKey -> Bool

Ord RHKey Source # 
Instance details

Defined in Simplex.Chat.Remote.Types

Methods

compare :: RHKey -> RHKey -> Ordering

(<) :: RHKey -> RHKey -> Bool

(<=) :: RHKey -> RHKey -> Bool

(>) :: RHKey -> RHKey -> Bool

(>=) :: RHKey -> RHKey -> Bool

max :: RHKey -> RHKey -> RHKey

min :: RHKey -> RHKey -> RHKey

data RemoteHost Source #

Storable/internal remote host data

Constructors

RemoteHost 

Fields

data RemoteHostInfo Source #

UI-accessible remote host information

Constructors

RemoteHostInfo 

Fields

Instances

Instances details
FromJSON RemoteHostInfo Source # 
Instance details

Defined in Simplex.Chat.Remote.Types

Methods

parseJSON :: Value -> Parser RemoteHostInfo

parseJSONList :: Value -> Parser [RemoteHostInfo]

omittedField :: Maybe RemoteHostInfo

ToJSON RemoteHostInfo Source # 
Instance details

Defined in Simplex.Chat.Remote.Types

Methods

toJSON :: RemoteHostInfo -> Value

toEncoding :: RemoteHostInfo -> Encoding

toJSONList :: [RemoteHostInfo] -> Value

toEncodingList :: [RemoteHostInfo] -> Encoding

omitField :: RemoteHostInfo -> Bool

Show RemoteHostInfo Source # 
Instance details

Defined in Simplex.Chat.Remote.Types

Methods

showsPrec :: Int -> RemoteHostInfo -> ShowS

show :: RemoteHostInfo -> String

showList :: [RemoteHostInfo] -> ShowS

type RemoteCtrlId = Int64 Source #

data RemoteCtrl Source #

Storable/internal remote controller data

Constructors

RemoteCtrl 

Fields

data PlatformEncoding Source #

Constructors

PESwift 
PEKotlin 

Instances

Instances details
FromJSON PlatformEncoding Source # 
Instance details

Defined in Simplex.Chat.Remote.Types

Methods

parseJSON :: Value -> Parser PlatformEncoding

parseJSONList :: Value -> Parser [PlatformEncoding]

omittedField :: Maybe PlatformEncoding

ToJSON PlatformEncoding Source # 
Instance details

Defined in Simplex.Chat.Remote.Types

Show PlatformEncoding Source # 
Instance details

Defined in Simplex.Chat.Remote.Types

Methods

showsPrec :: Int -> PlatformEncoding -> ShowS

show :: PlatformEncoding -> String

showList :: [PlatformEncoding] -> ShowS

Eq PlatformEncoding Source # 
Instance details

Defined in Simplex.Chat.Remote.Types

data RemoteFile Source #

Constructors

RemoteFile 

Fields

Instances

Instances details
FromJSON RemoteFile Source # 
Instance details

Defined in Simplex.Chat.Remote.Types

Methods

parseJSON :: Value -> Parser RemoteFile

parseJSONList :: Value -> Parser [RemoteFile]

omittedField :: Maybe RemoteFile

ToJSON RemoteFile Source # 
Instance details

Defined in Simplex.Chat.Remote.Types

Methods

toJSON :: RemoteFile -> Value

toEncoding :: RemoteFile -> Encoding

toJSONList :: [RemoteFile] -> Value

toEncodingList :: [RemoteFile] -> Encoding

omitField :: RemoteFile -> Bool

Show RemoteFile Source # 
Instance details

Defined in Simplex.Chat.Remote.Types

Methods

showsPrec :: Int -> RemoteFile -> ShowS

show :: RemoteFile -> String

showList :: [RemoteFile] -> ShowS

data CtrlAppInfo Source #

Constructors

CtrlAppInfo 

Instances

Instances details
FromJSON CtrlAppInfo Source # 
Instance details

Defined in Simplex.Chat.Remote.Types

Methods

parseJSON :: Value -> Parser CtrlAppInfo

parseJSONList :: Value -> Parser [CtrlAppInfo]

omittedField :: Maybe CtrlAppInfo

ToJSON CtrlAppInfo Source # 
Instance details

Defined in Simplex.Chat.Remote.Types

Methods

toJSON :: CtrlAppInfo -> Value

toEncoding :: CtrlAppInfo -> Encoding

toJSONList :: [CtrlAppInfo] -> Value

toEncodingList :: [CtrlAppInfo] -> Encoding

omitField :: CtrlAppInfo -> Bool

Show CtrlAppInfo Source # 
Instance details

Defined in Simplex.Chat.Remote.Types

Methods

showsPrec :: Int -> CtrlAppInfo -> ShowS

show :: CtrlAppInfo -> String

showList :: [CtrlAppInfo] -> ShowS

data HostAppInfo Source #

Constructors

HostAppInfo 

Instances

Instances details
FromJSON HostAppInfo Source # 
Instance details

Defined in Simplex.Chat.Remote.Types

Methods

parseJSON :: Value -> Parser HostAppInfo

parseJSONList :: Value -> Parser [HostAppInfo]

omittedField :: Maybe HostAppInfo

ToJSON HostAppInfo Source # 
Instance details

Defined in Simplex.Chat.Remote.Types

Methods

toJSON :: HostAppInfo -> Value

toEncoding :: HostAppInfo -> Encoding

toJSONList :: [HostAppInfo] -> Value

toEncodingList :: [HostAppInfo] -> Encoding

omitField :: HostAppInfo -> Bool