class CAVERNplus_socketbase_c

A base level socket class subclassed by CAVERNplus_tcp_c, CAVERNplus_udp_c, CAVERNplus_mcast_c

Inheritance:


Public Methods

void expandHostName (char *src, char *newname, int len)
If hostname is not fully expanded (ie does not include its domain) then expand it.
double getAverageReceiveBandwidth ()
Compute average incoming bandwidth by a connection.
double getAverageSendBandwidth ()
Compute average outgoing bandwidth by a connection.
void getHostName (char *name, int len)
Get the full host name of a local client
double getInstantReceiveBandwidth ()
Compute total instantaneous incoming bandwidth by a connection.
double getInstantSendBandwidth ()
Compute total instantaneous outgoing bandwidth by a connection.
double getTimeInSecs ()
Get time in secs with microsecond accuracy
unsigned long getTotalDataReceived ()
Compute total data received by a connection.
unsigned long getTotalDataSent ()
Compute the total data sent by a connection.
int hostnameToIP (char *hostname, char* hostIP)
Convert a hostname to an ip address of xxx.xxx.xxx.xxx
void ipNumToString (unsigned int ip, char *ipstring)
Convert ip address to a string of xxx.xxx.xxx.xxx
void showStats ()
Print stats on sent and received data.

Documentation

A base level socket class subclassed by CAVERNplus_tcp_c, CAVERNplus_udp_c, CAVERNplus_mcast_c. The class itself does no networking. It provides some common member functions that are useful for network coding. In general one does not create an instance of this type.

Direct child classes:
CAVERNplus_udp_c
CAVERNplus_udpReflector_c
CAVERNplus_tcpServer_c
CAVERNplus_tcpClient_c
CAVERNplus_mcast_c

alphabetic index hierarchy of classes


this page has been generated automatically by doc++

(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de