class
: public
Observable
(Return to index)
UList
based list of
DrawLink
's
Type:
Instantiable
Base Classes:
public
Observable
Derived Classes
Include file:
DrawServ/drawlinklist.h
Public:
DrawLink
(const char* hostname, int portnum, int state)
AckBackHandler
*
ackhandler
()
get
AckBackHandler
associated with incoming connection
void
ackhandler
(
AckBackHandler
* handler)
set
AckBackHandler
associated with incoming connection
const char*
althostname
()
return alternate name of remote host
void
althostname
(const char* althost)
set alternate name of remote host
int
close
()
close link to remote
DrawServ
DrawServHandler
*
comhandler
()
get
DrawServHandler
associated with incoming connection
void
comhandler
(
DrawServHandler
* handler)
set
DrawServHandler
associated with incoming connection
void
dump
(FILE*)
dump complete information on this
DrawLink
void
dump_incomingsidtable
(FILE*)
dump complete information on this
DrawLink
's IncomingSidTable
enum
{ new_link=0, one_way, two_way, redundant }
int
handle
()
return file descriptor associated with link
const char*
hostname
()
return name of remote host
void
hostname
(const char* host)
set name of remote host
IncomingSidTable*
incomingsidtable
()
return pointer to table mapping incoming sessionid's to locally unique sessionid's
int
local_linkid
()
get local
DrawLink
id
void
local_linkid
(int id)
get local
DrawLink
id
int
ok
()
return 1 if link ok (but not necessarily two-way yet), 0 if not
int
open
()
open link to remote
DrawServ
int
portnum
()
return port on remote host
int
remote_linkid
()
get remote
DrawLink
id
void
remote_linkid
(int id)
get remote
DrawLink
id
void
sid_change
(unsigned int& id)
change sid portion of an id to use local sid.
void
sid_insert
(unsigned int sid, unsigned int alt_sid)
insert new sid pair into table
int
state
()
get state of
DrawLink
return pointer to connected socket. map incoming sid to local sid.
void
state
(int val)
set state of
DrawLink
static char*
state_string
(int state)
int
up
()
return 1 if link up, 0 if down
virtual
~DrawLink
()
Protected:
AckBackHandler
*
_ackhandler
const char*
_althost
ACE_SOCK_Connector*
_conn
const char*
_host
IncomingSidTable*
_incomingsidtable
int
_incomingsidtable_size
static int
_linkcnt
int
_local_linkid
int
_ok
int
_port
int
_remote_linkid
ACE_SOCK_Stream*
_socket
int
_state
static char*
_state_strings[]
(more documentation)