Panda3D

directdServer.h

00001 // Filename: directdServer.h
00002 // Created by:  skyler 2002.04.08
00003 //
00004 ////////////////////////////////////////////////////////////////////
00005 //
00006 // PANDA 3D SOFTWARE
00007 // Copyright (c) Carnegie Mellon University.  All rights reserved.
00008 //
00009 // All use of this software is subject to the terms of the revised BSD
00010 // license.  You should have received a copy of this license along
00011 // with this source code in a file named "LICENSE."
00012 //
00013 ////////////////////////////////////////////////////////////////////
00014 
00015 #include "queuedConnectionReader.h"
00016 #include "directd.h"
00017 
00018 // Description: Start a directdServer on each of the machines you
00019 //              which to start panda on.
00020 //              
00021 //              Start a directdClient on the controlling machine
00022 //              or import ShowBaseGlobal with the xxxxx flag in
00023 //              your Configrc.  The client will connact each of
00024 //              the servers in the xxxxx list in your Configrc.
00025 class DirectDServer: public DirectD {
00026 public:
00027   DirectDServer();
00028   ~DirectDServer();
00029   
00030   void run_server(int port);
00031 
00032 protected:
00033   void read_command(string& cmd);
00034   virtual void handle_command(const string& cmd);
00035 };
00036 
 All Classes Functions Variables Enumerations