Panda3D
Public Member Functions | List of all members
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

Public Member Functions

void run_server (int port)
 
- Public Member Functions inherited from DirectD
int client_ready (const std::string &server_host, int port, const std::string &cmd)
 Call this function from the client when import ShowbaseGlobal is nearly finished. More...
 
int connect_to (const std::string &server_host, int port)
 Call connect_to from client for each server. More...
 
void disconnect_from (const std::string &server_host, int port)
 This is the counterpart to connect_to(). More...
 
void listen_to (int port, int backlog=8)
 Call listen_to in the server. More...
 
void send_command (const std::string &cmd)
 Send the same command string to all current connections. More...
 
int server_ready (const std::string &client_host, int port)
 Call this function from the server when import ShowbaseGlobal is nearly finished. More...
 
int tell_server (const std::string &server_host, int port, const std::string &cmd)
 Tell the server to do the command cmd. More...
 
bool wait_for_servers (int count, int timeout_ms=2 *60 *1000)
 Call this function from the client after calling <count> client_ready() calls. More...
 

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 24 of file directdServer.h.


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