vdr 2.7.6
|
Public Member Functions | |
cSocket (int Port, bool Tcp) | |
~cSocket () | |
bool | Listen (void) |
bool | Connect (const char *Address) |
void | Close (void) |
int | Port (void) const |
int | Socket (void) const |
int | Accept (void) |
cString | Discover (void) |
const cIpAddress * | LastIpAddress (void) const |
Static Public Member Functions | |
static bool | SendDgram (const char *Dgram, int Port) |
Private Attributes | |
int | port |
bool | tcp |
int | sock |
cIpAddress | lastIpAddress |
cSocket::cSocket | ( | int | Port, |
bool | Tcp ) |
int cSocket::Accept | ( | void | ) |
Definition at line 258 of file svdrp.c.
References dbgsvdrp, FATALERRNO, isyslog, lastIpAddress, LOG_ERROR, Setup, sock, SVDRPhosts, and tcp.
void cSocket::Close | ( | void | ) |
bool cSocket::Connect | ( | const char * | Address | ) |
cString cSocket::Discover | ( | void | ) |
Definition at line 284 of file svdrp.c.
References dbgsvdrp, dsyslog, FATALERRNO, isyslog, lastIpAddress, LOG_ERROR, MAXUDPBUF, Setup, sock, startswith(), strgetval(), SVDRPhosts, and tcp.
|
inline |
Definition at line 118 of file svdrp.c.
References lastIpAddress.
bool cSocket::Listen | ( | void | ) |
|
inline |
|
static |
|
inline |
|
private |
Definition at line 106 of file svdrp.c.
Referenced by Accept(), Discover(), and LastIpAddress().
|
private |
|
private |
|
private |