Panda3D
|
00001 // Filename: pStatListener.h 00002 // Created by: drose (09Jul00) 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 #ifndef PSTATLISTENER_H 00016 #define PSTATLISTENER_H 00017 00018 #include "pandatoolbase.h" 00019 00020 #include "connectionListener.h" 00021 #include "referenceCount.h" 00022 00023 class PStatServer; 00024 class PStatMonitor; 00025 00026 //////////////////////////////////////////////////////////////////// 00027 // Class : PStatListener 00028 // Description : This is the TCP rendezvous socket listener. We need 00029 // one of these to listen for new connections on the 00030 // socket(s) added to the PStatServer. 00031 //////////////////////////////////////////////////////////////////// 00032 class PStatListener : public ConnectionListener { 00033 public: 00034 PStatListener(PStatServer *manager); 00035 00036 protected: 00037 virtual void connection_opened(const PT(Connection) &rendezvous, 00038 const NetAddress &address, 00039 const PT(Connection) &new_connection); 00040 00041 private: 00042 PStatServer *_manager; 00043 }; 00044 00045 #endif