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