DirectDClient is a test app for DirectDServer. More...
#include "directdClient.h"
Public Member Functions | |
void | run_client (const std::string &host, int port) |
![]() | |
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... | |
DirectDClient is a test app for DirectDServer.
Definition at line 19 of file directdClient.h.