33connection_opened(
const PT(Connection) &,
35 const PT(Connection) &new_connection) {
36 PStatMonitor *monitor = _manager->make_monitor();
37 if (monitor ==
nullptr) {
38 nout <<
"Couldn't create monitor!\n";
42 nout <<
"Got new connection from " << address <<
"\n";
47 PStatReader *reader =
new PStatReader(_manager, monitor);
48 _manager->add_reader(new_connection, reader);
This is a special kind of ConnectionReader that waits for activity on a rendezvous port and accepts a...
void set_collect_tcp(bool collect_tcp)
Enables or disables "collect-tcp" mode.
Represents a network address to which UDP packets may be sent or to which a TCP socket may be bound.
void set_tcp_connection(Connection *tcp_connection)
This is intended to be called only once, immediately after construction, by the PStatListener that cr...
The overall manager of the network connections.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.