Panda3D
Public Member Functions | List of all members
DirectD Class Reference

DirectD is a client/server app for starting panda/direct. More...

#include "directd.h"

Inheritance diagram for DirectD:
DirectDClient DirectDServer

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 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)
 

Detailed Description

DirectD is a client/server app for starting panda/direct.

Usage: Start a directd server on each of the machines you which to start panda on.

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

There are two API groups in this class, they are:

listen_to() client_ready() or tell_server() wait_for_servers() server_ready()

and:

connect_to() send_command() disconnect_from()

The second group was from a more general implementation of DirectD. The first group summarizes the main intents of DirectD. Both groups are presented in order chronologically by their intended usage. The first group will probably provide everthing needed for DirectD.

Definition at line 63 of file directd.h.


The documentation for this class was generated from the following files: