Panda3D
pStatListener.h
1 // Filename: pStatListener.h
2 // Created by: drose (09Jul00)
3 //
4 ////////////////////////////////////////////////////////////////////
5 //
6 // PANDA 3D SOFTWARE
7 // Copyright (c) Carnegie Mellon University. All rights reserved.
8 //
9 // All use of this software is subject to the terms of the revised BSD
10 // license. You should have received a copy of this license along
11 // with this source code in a file named "LICENSE."
12 //
13 ////////////////////////////////////////////////////////////////////
14 
15 #ifndef PSTATLISTENER_H
16 #define PSTATLISTENER_H
17 
18 #include "pandatoolbase.h"
19 
20 #include "connectionListener.h"
21 #include "referenceCount.h"
22 
23 class PStatServer;
24 class PStatMonitor;
25 
26 ////////////////////////////////////////////////////////////////////
27 // Class : PStatListener
28 // Description : This is the TCP rendezvous socket listener. We need
29 // one of these to listen for new connections on the
30 // socket(s) added to the PStatServer.
31 ////////////////////////////////////////////////////////////////////
33 public:
34  PStatListener(PStatServer *manager);
35 
36 protected:
37  virtual void connection_opened(const PT(Connection) &rendezvous,
38  const NetAddress &address,
39  const PT(Connection) &new_connection);
40 
41 private:
42  PStatServer *_manager;
43 };
44 
45 #endif
This is an abstract class that presents the interface to any number of different front-ends for the s...
Definition: pStatMonitor.h:43
This is the TCP rendezvous socket listener.
Definition: pStatListener.h:32
The overall manager of the network connections.
Definition: pStatServer.h:41
Represents a single TCP or UDP socket for input or output.
Definition: connection.h:32
This is a special kind of ConnectionReader that waits for activity on a rendezvous port and accepts a...
Represents a network address to which UDP packets may be sent or to which a TCP socket may be bound...
Definition: netAddress.h:27