#include <directd.h>
Inheritance diagram for DirectD:
Public Member Functions | |
DirectD () | |
~DirectD () | |
void | listen_to (int port, int backlog=8) |
int | client_ready (const string &server_host, int port, const string &cmd) |
int | tell_server (const string &server_host, int port, const string &cmd) |
bool | wait_for_servers (int count, int timeout_ms=2 *60 *1000) |
int | server_ready (const string &client_host, int port) |
int | connect_to (const string &server_host, int port) |
void | disconnect_from (const string &server_host, int port) |
void | send_command (const string &cmd) |
Protected Types | |
typedef pvector< long > | PidStack |
typedef pset< PT(Connection) | ConnectionSet ) |
Protected Member Functions | |
void | start_app (const string &cmd) |
void | kill_app (int index) |
void | kill_all () |
virtual void | handle_command (const string &cmd) |
void | handle_datagram (NetDatagram &datagram) |
void | send_one_message (const string &host_name, int port, const string &message) |
void | check_for_new_clients () |
void | check_for_datagrams () |
void | check_for_lost_connection () |
Protected Attributes | |
QueuedConnectionManager | _cm |
QueuedConnectionReader | _reader |
ConnectionWriter | _writer |
QueuedConnectionListener | _listener |
bool | _useOldStuff |
PidStack | _pids |
ConnectionSet | _connections |
HANDLE | _jobObject |
bool | _shutdown |
|
|
|
|
|
Definition at line 139 of file directd.cxx. |
|
Definition at line 144 of file directd.cxx. References _cm, and _connections. |
|
Definition at line 405 of file directd.cxx. References _reader, NetDatagram::dump_hex(), NetDatagram::get_address(), handle_datagram(), and nout. |
|
Definition at line 393 of file directd.cxx. References _cm, _connections, QueuedConnectionManager::close_connection(), and nout. |
|
Definition at line 430 of file directd.cxx. References _connections, _listener, _reader, QueuedConnectionReader::add_connection(), and nout. |
|
Definition at line 156 of file directd.cxx. |
|
Definition at line 354 of file directd.cxx. References nout. |
|
Definition at line 378 of file directd.cxx. References _cm, _connections, _reader, QueuedConnectionManager::close_connection(), nout, and QueuedConnectionReader::remove_connection(). |
|
Reimplemented in DirectDServer. Definition at line 316 of file directd.cxx. |
|
Definition at line 309 of file directd.cxx. Referenced by check_for_datagrams(). |
|
Definition at line 278 of file directd.cxx. |
|
Definition at line 262 of file directd.cxx. References _pids, nout, and TerminateApp(). Referenced by DirectDServer::handle_command(). |
|
Definition at line 419 of file directd.cxx. References nout. |
|
Definition at line 298 of file directd.cxx. References _connections, and _writer. |
|
Definition at line 321 of file directd.cxx. References nout. |
|
Definition at line 212 of file directd.cxx. |
|
Definition at line 219 of file directd.cxx. |
|
Definition at line 165 of file directd.cxx. |
|
Definition at line 172 of file directd.cxx. |
|
Definition at line 146 of file directd.h. Referenced by check_for_lost_connection(), disconnect_from(), and ~DirectD(). |
|
Definition at line 162 of file directd.h. Referenced by check_for_lost_connection(), check_for_new_clients(), disconnect_from(), DirectDClient::run_client(), send_command(), and ~DirectD(). |
|
|
|
Definition at line 149 of file directd.h. Referenced by check_for_new_clients(). |
|
Definition at line 158 of file directd.h. Referenced by kill_all(), kill_app(), and start_app(). |
|
Definition at line 147 of file directd.h. Referenced by check_for_datagrams(), check_for_new_clients(), and disconnect_from(). |
|
Definition at line 164 of file directd.h. Referenced by DirectDServer::handle_command(), and DirectDServer::run_server(). |
|
|
|
Definition at line 148 of file directd.h. Referenced by send_command(). |