Panda3D
Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes

DirectDClient Class Reference

DirectDClient is a test app for DriectDServer. More...

#include "directdClient.h"

Inheritance diagram for DirectDClient:
DirectD

List of all members.

Public Member Functions

int client_ready (const string &server_host, int port, const string &cmd)
int connect_to (const string &server_host, int port)
void disconnect_from (const string &server_host, int port)
void listen_to (int port, int backlog=8)
void run_client (const string &host, int port)
void send_command (const string &cmd)
int server_ready (const string &client_host, int port)
int tell_server (const string &server_host, int port, const string &cmd)
bool wait_for_servers (int count, int timeout_ms=2 *60 *1000)

Protected Types

typedef pset< PT(Connection) > ConnectionSet
typedef pvector< long > PidStack

Protected Member Functions

void check_for_datagrams ()
void check_for_lost_connection ()
void check_for_new_clients ()
void cli_command (const string &cmd)
virtual void handle_command (const string &cmd)
void handle_datagram (NetDatagram &datagram)
void kill_all ()
void kill_app (int index)
void send_one_message (const string &host_name, int port, const string &message)
void start_app (const string &cmd)

Protected Attributes

QueuedConnectionManager _cm
ConnectionSet _connections
HANDLE _jobObject
QueuedConnectionListener _listener
PidStack _pids
QueuedConnectionReader _reader
bool _shutdown
bool _useOldStuff
ConnectionWriter _writer

Detailed Description

DirectDClient is a test app for DriectDServer.

Definition at line 18 of file directdClient.h.


The documentation for this class was generated from the following files:
 All Classes Functions Variables Enumerations