ESA JPIP server  0.1
ClientInfo Class Reference

Contains information of a connected client. More...

#include <client_info.h>

Collaboration diagram for ClientInfo:

Public Member Functions

 ClientInfo (int base_id, int sock, int father_sock)
 Initializes the object. More...
 
int sock () const
 Returns the client socket. More...
 
int base_id () const
 Returns the base identifier. More...
 
int father_sock () const
 Returns the father socket. More...
 
long bytes_sent () const
 Returns the total bytes sent. More...
 
long time () const
 Returns the time spent from the starting of the connection. More...
 
virtual ~ClientInfo ()
 

Private Attributes

int sock_
 Client socket. More...
 
int base_id_
 Base identifier. More...
 
time_t tm_start
 When the connection started. More...
 
int father_sock_
 Father socket. More...
 
long bytes_sent_
 Total bytes sent. More...
 

Detailed Description

Contains information of a connected client.

Constructor & Destructor Documentation

ClientInfo::ClientInfo ( int  base_id,
int  sock,
int  father_sock 
)
inline

Initializes the object.

Parameters
base_idBase identifier.
sockClient socket.
father_sockFather socket.

Here is the call graph for this function:

virtual ClientInfo::~ClientInfo ( )
inlinevirtual

Member Function Documentation

int ClientInfo::base_id ( ) const
inline

Returns the base identifier.

Here is the caller graph for this function:

long ClientInfo::bytes_sent ( ) const
inline

Returns the total bytes sent.

int ClientInfo::father_sock ( ) const
inline

Returns the father socket.

Here is the caller graph for this function:

int ClientInfo::sock ( ) const
inline

Returns the client socket.

Here is the caller graph for this function:

long ClientInfo::time ( ) const
inline

Returns the time spent from the starting of the connection.

Here is the caller graph for this function:

Member Data Documentation

int ClientInfo::base_id_
private

Base identifier.

long ClientInfo::bytes_sent_
private

Total bytes sent.

int ClientInfo::father_sock_
private

Father socket.

int ClientInfo::sock_
private

Client socket.

time_t ClientInfo::tm_start
private

When the connection started.


The documentation for this class was generated from the following file: