1 #ifndef _CLIENT_INFO_H_
2 #define _CLIENT_INFO_H_
75 return (
long)(tm_start - now);
long bytes_sent() const
Returns the total bytes sent.
Definition: client_info.h:63
int sock_
Client socket.
Definition: client_info.h:14
int father_sock() const
Returns the father socket.
Definition: client_info.h:55
long time() const
Returns the time spent from the starting of the connection.
Definition: client_info.h:72
Contains information of a connected client.
Definition: client_info.h:11
int base_id_
Base identifier.
Definition: client_info.h:15
int father_sock_
Father socket.
Definition: client_info.h:17
int sock() const
Returns the client socket.
Definition: client_info.h:39
int base_id() const
Returns the base identifier.
Definition: client_info.h:47
long bytes_sent_
Total bytes sent.
Definition: client_info.h:18
time_t tm_start
When the connection started.
Definition: client_info.h:16
virtual ~ClientInfo()
Definition: client_info.h:78
ClientInfo(int base_id, int sock, int father_sock)
Initializes the object.
Definition: client_info.h:27