// Filename: directdServer.cxx // Created by: skyler 2002.04.08 // //////////////////////////////////////////////////////////////////// // // 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." // //////////////////////////////////////////////////////////////////// #include "directdServer.h" DirectDServer::DirectDServer() { } DirectDServer::~DirectDServer() { } void DirectDServer::handle_command(const string& cmd) { nout<<"DirectDServer::handle_command: "< 0) { cmd = buf; cerr<<"read_command "< 1 && strcmp(argv[1], "--help")==0) { cerr<<"directd []\n" " port default 8001\n"; return 1; } cerr<<"directdServer "<<__DATE__<<" "<<__TIME__< 1) { port=(atoi(argv[argc-1])); } DirectDServer directd; directd.run_server(port); return 0; }