#include <directdServer.h>
Inheritance diagram for DirectDServer:
Public Member Functions | |
DirectDServer () | |
~DirectDServer () | |
void | run_server (int port) |
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 | read_command (string &cmd) |
virtual void | handle_command (const string &cmd) |
void | start_app (const string &cmd) |
void | kill_app (int index) |
void | kill_all () |
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 24 of file directdServer.cxx. |
|
Definition at line 27 of file directdServer.cxx. References nout. |
|
Definition at line 405 of file directd.cxx. References DirectD::_reader, NetDatagram::dump_hex(), NetDatagram::get_address(), DirectD::handle_datagram(), and nout. |
|
Definition at line 393 of file directd.cxx. References DirectD::_cm, DirectD::_connections, QueuedConnectionManager::close_connection(), and nout. |
|
Definition at line 430 of file directd.cxx. References DirectD::_connections, DirectD::_listener, DirectD::_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 DirectD::_cm, DirectD::_connections, DirectD::_reader, QueuedConnectionManager::close_connection(), nout, and QueuedConnectionReader::remove_connection(). |
|
Reimplemented from DirectD. Definition at line 31 of file directdServer.cxx. References DirectD::_shutdown, and DirectD::kill_app(). |
|
Definition at line 309 of file directd.cxx. Referenced by DirectD::check_for_datagrams(). |
|
Definition at line 278 of file directd.cxx. References DirectD::_pids, and nout. |
|
Definition at line 262 of file directd.cxx. References DirectD::_pids, nout, and TerminateApp(). Referenced by handle_command(). |
|
Definition at line 419 of file directd.cxx. References nout. |
|
Definition at line 69 of file directdServer.cxx. |
|
Definition at line 90 of file directdServer.cxx. References DirectD::_shutdown. |
|
Definition at line 298 of file directd.cxx. References DirectD::_connections, and DirectD::_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. References DirectD::_pids, and nout. |
|
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 DirectD::check_for_lost_connection(), DirectD::disconnect_from(), and DirectD::~DirectD(). |
|
Definition at line 162 of file directd.h. Referenced by DirectD::check_for_lost_connection(), DirectD::check_for_new_clients(), DirectD::disconnect_from(), DirectDClient::run_client(), DirectD::send_command(), and DirectD::~DirectD(). |
|
|
|
Definition at line 149 of file directd.h. Referenced by DirectD::check_for_new_clients(). |
|
Definition at line 158 of file directd.h. Referenced by DirectD::kill_all(), DirectD::kill_app(), and DirectD::start_app(). |
|
Definition at line 147 of file directd.h. Referenced by DirectD::check_for_datagrams(), DirectD::check_for_new_clients(), and DirectD::disconnect_from(). |
|
Definition at line 164 of file directd.h. Referenced by handle_command(), and run_server(). |
|
|
|
Definition at line 148 of file directd.h. Referenced by DirectD::send_command(). |