Go to the documentation of this file.
41 bool listen(
int port = -1);
44 void main_loop(
bool *interrupt_flag =
nullptr);
63 virtual void connection_reset(
const PT(
Connection) &connection,
67 void user_guide_bars_changed();
78 Ports _available_udp_ports;
81 typedef vector_stdfloat GuideBars;
82 GuideBars _user_guide_bars;
void release_udp_port(int port)
Indicates that the given UDP port is once again free for use.
The overall manager of the network connections.
This is our own Panda specialization on the default STL map.
void remove_user_guide_bar(int n)
Removes the user guide bar with the indicated index number.
Represents a single TCP or UDP socket for input or output.
int get_num_user_guide_bars() const
Returns the current number of user-defined guide bars.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
void remove_reader(Connection *connection, PStatReader *reader)
Removes the indicated reader.
double get_user_guide_bar_height(int n) const
Returns the height of the nth user-defined guide bar.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
void poll()
Checks for any network activity and handles it, if appropriate, and then returns.
int get_udp_port()
Returns a new port number that will probably be free to use as a UDP port.
void add_reader(Connection *connection, PStatReader *reader)
Adds the newly-created PStatReader to the list of currently active readers.
void main_loop(bool *interrupt_flag=nullptr)
An alternative to repeatedly calling poll(), this function yields control of the program to the PStat...
The primary interface to the low-level networking layer in this package.
bool listen(int port=-1)
Establishes a port number that the manager will listen on for TCP connections.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
void move_user_guide_bar(int n, double height)
Adjusts the height of the nth user-defined guide bar.
virtual bool is_thread_safe()
This should be redefined to return true in derived classes that want to deal with multithreaded reade...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
This is an abstract class that presents the interface to any number of different front-ends for the s...
This is the class that does all the work for handling communications from a single Panda client.
int find_user_guide_bar(double from_height, double to_height) const
Returns the index number of the first user guide bar found whose height is within the indicated range...
int add_user_guide_bar(double height)
Creates a new user guide bar and returns its index number.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
This is the TCP rendezvous socket listener.