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