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

DirectDServer Class Reference

Start a directdServer on each of the machines you which to start panda on. More...

#include "directdServer.h"

Inheritance diagram for DirectDServer:
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_server (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 ()
virtual void handle_command (const string &cmd)
void handle_datagram (NetDatagram &datagram)
void kill_all ()
void kill_app (int index)
void read_command (string &cmd)
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

Start a directdServer on each of the machines you which to start panda on.

Start a directdClient on the controlling machine or import ShowBaseGlobal with the xxxxx flag in your Configrc. The client will connact each of the servers in the xxxxx list in your Configrc.

Definition at line 25 of file directdServer.h.


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