vdr
2.4.0
|
Public Member Functions | |
cSVDRPServerHandler (int TcpPort) | |
virtual | ~cSVDRPServerHandler () |
void | WaitUntilReady (void) |
![]() | |
cThread (const char *Description=NULL, bool LowPriority=false) | |
virtual | ~cThread () |
void | SetDescription (const char *Description,...) __attribute__((format(printf |
void bool | Start (void) |
bool | Active (void) |
Protected Member Functions | |
virtual void | Action (void) |
![]() | |
void | SetPriority (int Priority) |
void | SetIOPriority (int Priority) |
void | Lock (void) |
void | Unlock (void) |
bool | Running (void) |
void | Cancel (int WaitSeconds=0) |
Private Member Functions | |
void | HandleServerConnection (void) |
void | ProcessConnections (void) |
Private Attributes | |
bool | ready |
cSocket | tcpSocket |
cVector< cSVDRPServer * > | serverConnections |
Additional Inherited Members | |
![]() | |
static tThreadId | ThreadId (void) |
static tThreadId | IsMainThread (void) |
static void | SetMainThreadId (void) |
cSVDRPServerHandler::cSVDRPServerHandler | ( | int | TcpPort | ) |
|
virtual |
Definition at line 2761 of file svdrp.c.
References cThread::Cancel(), serverConnections, and cVector< T >::Size().
|
protectedvirtual |
A derived cThread class must implement the code it wants to execute as a separate thread in this function.
If this is a loop, it must check Running() repeatedly to see whether it's time to stop.
Implements cThread.
Definition at line 2793 of file svdrp.c.
References cPoller::Add(), cSocket::Close(), cPoller::Del(), HandleServerConnection(), cSocket::Listen(), cPoller::Poll(), ProcessConnections(), ready, cThread::Running(), cSocket::Socket(), SVDRPServerPoller, and tcpSocket.
|
private |
Definition at line 2786 of file svdrp.c.
References cSocket::Accept(), cVector< T >::Append(), cSocket::LastIpAddress(), serverConnections, and tcpSocket.
Referenced by Action().
|
private |
Definition at line 2775 of file svdrp.c.
References cVector< T >::Remove(), serverConnections, and cVector< T >::Size().
Referenced by Action().
void cSVDRPServerHandler::WaitUntilReady | ( | void | ) |
Definition at line 2768 of file svdrp.c.
References ready, cCondWait::SleepMs(), and cTimeMs::TimedOut().
Referenced by StartSVDRPHandler().
|
private |
Definition at line 2739 of file svdrp.c.
Referenced by Action(), cSVDRPServerHandler(), and WaitUntilReady().
|
private |
Definition at line 2741 of file svdrp.c.
Referenced by HandleServerConnection(), ProcessConnections(), and ~cSVDRPServerHandler().
|
private |
Definition at line 2740 of file svdrp.c.
Referenced by Action(), and HandleServerConnection().