The Open Master Hearing Aid (openMHA)  openMHA
Open community platform for hearing aid algorithm research
MHA_TCP Namespace Reference

A Namespace for TCP helper classes. More...

Classes

class  sock_init_t
 
struct  OS_EVENT_TYPE
 
class  Wakeup_Event
 A base class for asynchronous wakeup events. More...
 
class  Async_Notify
 Portable Multiplexable cross-thread notification. More...
 
class  Event_Watcher
 OS-independent event watcher, uses select on Unix and WaitForMultipleObjects on Windows. More...
 
class  Timeout_Event
 
class  Timeout_Watcher
 OS-independent event watcher with internal fixed-end-time timeout. More...
 
class  Sockread_Event
 Watch socket for incoming data. More...
 
class  Sockwrite_Event
 
class  Sockaccept_Event
 
class  Connection
 Connection handles Communication between client and server, is used on both sides. More...
 
class  Server
 
class  Client
 A portable class for a tcp client connections. More...
 
class  Thread
 A very simple class for portable threads. More...
 

Typedefs

typedef int SOCKET
 

Functions

std::string STRERROR (int err)
 Portable conversion from error number to error string. More...
 
std::string HSTRERROR (int err)
 Portable conversion from hostname error number to error string. More...
 
int N_ERRNO ()
 Portable access to last network error number. More...
 
int H_ERRNO ()
 Portable access to last hostname error number. More...
 
int G_ERRNO ()
 Portable access to last non-network error number. More...
 
double dtime ()
 Time access function for system's high resolution time, retrieve current time as double. More...
 
double dtime (const struct timeval &tv)
 Time access function for unix' high resolution time, converts struct timeval to double. More...
 
struct timeval stime (double d)
 Time access function for unix' high resolution time, converts time from double to struct timeval. More...
 

Variables

class MHA_TCP::sock_init_t sock_initializer
 

Detailed Description

A Namespace for TCP helper classes.

Typedef Documentation

◆ SOCKET

typedef int MHA_TCP::SOCKET

Function Documentation

◆ STRERROR()

std::string MHA_TCP::STRERROR ( int  err)

Portable conversion from error number to error string.

◆ HSTRERROR()

std::string MHA_TCP::HSTRERROR ( int  err)

Portable conversion from hostname error number to error string.

◆ N_ERRNO()

int MHA_TCP::N_ERRNO ( )

Portable access to last network error number.

◆ H_ERRNO()

int MHA_TCP::H_ERRNO ( )

Portable access to last hostname error number.

◆ G_ERRNO()

int MHA_TCP::G_ERRNO ( )

Portable access to last non-network error number.

◆ dtime() [1/2]

double MHA_TCP::dtime ( )

Time access function for system's high resolution time, retrieve current time as double.

◆ dtime() [2/2]

double MHA_TCP::dtime ( const struct timeval &  tv)

Time access function for unix' high resolution time, converts struct timeval to double.

◆ stime()

struct timeval MHA_TCP::stime ( double  d)

Time access function for unix' high resolution time, converts time from double to struct timeval.

Variable Documentation

◆ sock_initializer

class MHA_TCP::sock_init_t MHA_TCP::sock_initializer