|
Panda3D
|
DirectDClient is a test app for DirectDServer. More...
#include "directdClient.h"
Public Member Functions | |
| void | run_client (const std::string &host, 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. | |
| int | connect_to (const std::string &server_host, int port) |
| Call connect_to from client for each server. | |
| void | disconnect_from (const std::string &server_host, int port) |
| This is the counterpart to connect_to(). | |
| void | listen_to (int port, int backlog=8) |
| Call listen_to in the server. | |
| void | send_command (const std::string &cmd) |
| Send the same command string to all current connections. | |
| int | server_ready (const std::string &client_host, int port) |
| Call this function from the server when import ShowbaseGlobal is nearly finished. | |
| int | tell_server (const std::string &server_host, int port, const std::string &cmd) |
| Tell the server to do the command cmd. | |
| bool | wait_for_servers (int count, int timeout_ms=2 *60 *1000) |
| Call this function from the client after calling <count> client_ready() calls. | |
DirectDClient is a test app for DirectDServer.
Definition at line 19 of file directdClient.h.
| DirectDClient::DirectDClient | ( | ) |
Definition at line 22 of file directdClient.cxx.
| DirectDClient::~DirectDClient | ( | ) |
Definition at line 25 of file directdClient.cxx.
| void DirectDClient::run_client | ( | const std::string & | host, |
| int | port ) |
Definition at line 52 of file directdClient.cxx.