|
vdr 2.8.1
|
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 257 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 283 of file svdrp.c.
References dbgsvdrp, dsyslog, FATALERRNO, 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 |