-
class
DrawServ
: public OverlayUnidraw
(Return to index)
-
Type:
Base Classes:
Derived Classes
Include file:
Public:
- virtual void
DistributeCmdString (const char* cmdstring, DrawLink* orglink=nil)
send command string to every remote DrawServ (except where it came from).
-
DrawServ (Catalog*, World*)
-
DrawServ ( Catalog*, int& argc, char** argv, OptionDesc* = nil, PropertyData* = nil )
- virtual void
ExecuteCmd (Command*)
- static unsigned int
GraphicIdMask
- void
Init ()
Create new link to remote drawserv, return -1 if error
state: 0==new_link, 1==one_way, 2==two_way.
Let DrawLink assign local_id by passing -1 for local_id.
The local_id argument is for verification purposes once
two-way link is established.
- virtual boolean
PrintAttributeList (ostream& out, AttributeList* list)
alternate method for serializing an AttributeList
returns false if really not there.
- virtual void
SendCmdString (DrawLink* link, const char* cmdstring)
execute command string on one remote DrawServ
- static unsigned int
SessionIdMask
- int
comdraw_port ()
return port used for comdraw command interpreter
- CompIdTable*
compidtable ()
- boolean
cycletest (unsigned int sid, const char* host, const char* user, int pid)
test for new incoming link that would establish a cycle
- void
grid_message (GraphicId* grid)
generate graphic id selection message
- void
grid_message_callback (DrawLink* link, unsigned int id, unsigned int selector, int state, unsigned int oldselector)
callback for graphic id selection message
propagate graphic id selection message
generate unique graphic id.
- void
grid_message_handle (DrawLink* link, unsigned int id, unsigned int selector, int state, unsigned int newselector=0)
handle graphic id selection message
- GraphicIdTable*
gridtable ()
- int
linkdown (DrawLink* link)
shut down existing link to remote drawserv
- void
linkdump (FILE*)
- DrawLink*
linkget (const char* hostname, int portnum)
- DrawLink*
linkget (int local_id, int remote_id=-1)
- DrawLink*
linkget (unsigned int sessionid)
return pointer to existing DrawLink given a sessionid.
- DrawLinkList*
linklist ()
- void
print_gridtable ()
- void
print_sidtable ()
print contents of table of SessionId's
- void
remove_sids (DrawLink*)
remove all SessionId's associated with this DrawLink
- boolean
selftest (const char* host, unsigned int portnum)
test if a new outgoing link is really to yourself
- unsigned int
sessionid ()
current unique session id.
- void
sessionid_register (DrawLink* link)
- void
sessionid_register_handle (DrawLink* link, unsigned int sid, unsigned int osid, int pid, const char* user, const char* host, int hostid)
handle request to register unique session id
- void
sessionid_register_propagate (DrawLink* link, unsigned int sid, unsigned int osid, int pid, const char* user, const char *host, int hostid)
propagate a newly registered session id to all other DrawLink's
- SessionIdTable*
sessionidtable ()
return pointer to table of session id's that map to SessionId's
- static int
test_grid (unsigned int id)
test candidate graphic id for local uniqueness
- static int
test_sessionid (unsigned int id)
test candidate session id for local uniqueness
- static unsigned int
unique_sessionid ()
generate unique session id.
- virtual
~DrawServ ()
Protected:
(more documentation)