15 #ifndef PSTATCLIENTIMPL_H
16 #define PSTATCLIENTIMPL_H
18 #include "pandabase.h"
23 #include "pStatFrameData.h"
24 #include "connectionManager.h"
25 #include "queuedConnectionReader.h"
26 #include "connectionWriter.h"
27 #include "netAddress.h"
29 #include "trueClock.h"
60 INLINE
void set_client_name(
const string &name);
61 INLINE
string get_client_name()
const;
62 INLINE
void set_max_rate(
double rate);
63 INLINE
double get_max_rate()
const;
65 INLINE
double get_real_time()
const;
67 INLINE
void client_main_tick();
68 bool client_connect(
string hostname,
int port);
69 void client_disconnect();
70 INLINE
bool client_is_connected()
const;
72 INLINE
void client_resume_after_pause();
74 void new_frame(
int thread_index);
75 void add_frame(
int thread_index,
const PStatFrameData &frame_data);
78 void transmit_frame_data(
int thread_index,
int frame_number,
81 void transmit_control_data();
88 string get_hostname();
90 void report_new_collectors();
91 void report_new_threads();
94 virtual void connection_reset(
const PT(
Connection) &connection,
109 int _collectors_reported;
110 int _threads_reported;
116 double _tcp_count_factor;
117 double _udp_count_factor;
118 unsigned int _tcp_count;
119 unsigned int _udp_count;
122 #include "pStatClientImpl.I"
This kind of message is sent from the server to the client on the TCP socket to establish critical co...
The primary interface to the low-level networking layer in this package.
A lightweight class that represents a single element that may be timed and/or counted via stats...
Contains the raw timing and level data for a single frame.
This class handles threaded delivery of datagrams to various TCP or UDP sockets.
A lightweight class that represents a single thread of execution to PStats.
An interface to whatever real-time clock we might have available in the current environment.
This flavor of ConnectionReader will read from its sockets and queue up all of the datagrams read for...
Defines the details about the Collectors: the name, the suggested color, etc.
Manages the communications to report statistics via a network connection to a remote PStatServer...
Represents a single TCP or UDP socket for input or output.
Represents a network address to which UDP packets may be sent or to which a TCP socket may be bound...