class Connection


Contains pure virtuals
Full nameArts::Connection
Definition#include <arts/connection.h>
Inherited bySocketConnection, TCPConnection, UnixConnection
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Types

Public Methods

Protected Methods

Protected Members


Detailed Description

enum ConnectionState { unknown = 0, expectServerHello = 1, expectClientHello = 2, expectAuthAccept = 3, established = 4 }

ConnectionState

Buffer * rcbuf

rcbuf

[protected]

bool receiveHeader

receiveHeader

[protected]

long remaining

remaining

[protected]

long messageType

messageType

[protected]

ConnectionState _connState

_connState

[protected]

std::string serverID

serverID

[protected]

std::string _cookie

_cookie

[protected]

long _refCnt

_refCnt

[protected]

void  initReceive ()

initReceive

[protected]

If you don't want to handle message fragmentation yourself:

Call initReceive in your derived Connection constructor, ald receive as soon as you receive some data - the connection object will handle the rest (put the messages into buffers and send them to the dispatcher)

void  receive (unsigned char *data, long len)

receive

[protected]

 ~Connection ()

~Connection

[protected virtual]

 Connection ()

Connection

inline void  setServerID (std::string _serverID)

setServerID

inline bool  isConnected (std::string s)

isConnected

inline void  setConnState (ConnectionState cs)

setConnState

inline std::string  cookie ()

cookie

void  setCookie (std::string c)

setCookie

void  setHints (const std::vector<std::string>& hints)

setHints

std::string  findHint (const std::string& name)

findHint

inline ConnectionState  connState ()

connState

void  drop ()

drop

[pure virtual]

bool  broken ()

broken

[pure virtual]

void  qSendBuffer (Buffer *buffer)

qSendBuffer

[pure virtual]

void  _release ()

_release

void  _copy ()

_copy


Generated by: stefan on stefan on Sat Jun 2 23:13:28 2001, using kdoc 2.0a53.