open_toontown_panda3d/direct/src/directdServer/directdServer.h

35 lines
929 B
C++

/**
* PANDA 3D SOFTWARE
* Copyright (c) Carnegie Mellon University. All rights reserved.
*
* All use of this software is subject to the terms of the revised BSD
* license. You should have received a copy of this license along
* with this source code in a file named "LICENSE."
*
* @file directdServer.h
* @author skyler
* @date 2002-04-08
*/
#include "queuedConnectionReader.h"
#include "directd.h"
/**
* 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.
*/
class DirectDServer: public DirectD {
public:
DirectDServer();
~DirectDServer();
void run_server(int port);
protected:
void read_command(std::string& cmd);
virtual void handle_command(const std::string& cmd);
};