|
vdr
2.4.0
|
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 | ||
| ) |
Definition at line 121 of file svdrp.c.
References cIpAddress::port, and cIpAddress::Port().
| int cSocket::Accept | ( | void | ) |
Definition at line 258 of file svdrp.c.
References cSVDRPhosts::Acceptable(), dbgsvdrp, FATALERRNO, isyslog, LOG_ERROR, Setup, cSetup::SVDRPHostName, and SVDRPhosts.
Referenced by cSVDRPServerHandler::HandleServerConnection().
| void cSocket::Close | ( | void | ) |
Definition at line 133 of file svdrp.c.
Referenced by cSVDRPClientHandler::Action(), cSVDRPServerHandler::Action(), and cSVDRPClient::Close().
| bool cSocket::Connect | ( | const char * | Address | ) |
Definition at line 188 of file svdrp.c.
References dbgsvdrp, isyslog, LOG_ERROR, cIpAddress::port, Setup, and cSetup::SVDRPHostName.
Referenced by cSVDRPClient::cSVDRPClient().
| cString cSocket::Discover | ( | void | ) |
Definition at line 284 of file svdrp.c.
References cSVDRPhosts::Acceptable(), dbgsvdrp, dsyslog, FATALERRNO, isyslog, LOG_ERROR, MAXUDPBUF, Setup, startswith(), strgetval(), cSetup::SVDRPHostName, and SVDRPhosts.
Referenced by cSVDRPClientHandler::HandleClientConnection().
|
inline |
Definition at line 118 of file svdrp.c.
Referenced by cSVDRPClientHandler::HandleClientConnection(), and cSVDRPServerHandler::HandleServerConnection().
| bool cSocket::Listen | ( | void | ) |
Definition at line 141 of file svdrp.c.
References isyslog, cSVDRPhosts::LocalhostOnly(), LOG_ERROR, cIpAddress::port, Setup, cSetup::SVDRPHostName, and SVDRPhosts.
Referenced by cSVDRPClientHandler::Action(), and cSVDRPServerHandler::Action().
|
inline |
Definition at line 113 of file svdrp.c.
References cIpAddress::port.
Referenced by cSVDRPClientHandler::SendDiscover().
|
static |
Definition at line 226 of file svdrp.c.
References dbgsvdrp, dsyslog, LOG_ERROR, Setup, and cSetup::SVDRPHostName.
Referenced by cSVDRPClientHandler::SendDiscover().
|
inline |
Definition at line 114 of file svdrp.c.
References cIpAddress::Port().
Referenced by cSVDRPClientHandler::Action(), cSVDRPServerHandler::Action(), and cSVDRPClient::cSVDRPClient().
|
private |
1.8.11