vdr  2.2.0
Public Member Functions | Private Member Functions | Private Attributes | List of all members
cSocket Class Reference

#include <svdrp.h>

Public Member Functions

 cSocket (int Port, int Queue=1)
 
 ~cSocket ()
 
bool Open (void)
 
int Accept (void)
 

Private Member Functions

void Close (void)
 

Private Attributes

int port
 
int sock
 
int queue
 

Detailed Description

Definition at line 16 of file svdrp.h.

Constructor & Destructor Documentation

cSocket::cSocket ( int  Port,
int  Queue = 1 
)

Definition at line 44 of file svdrp.c.

References port, queue, and sock.

cSocket::~cSocket ( )

Definition at line 51 of file svdrp.c.

References Close().

Member Function Documentation

int cSocket::Accept ( void  )

Definition at line 107 of file svdrp.c.

References cSVDRPhosts::Acceptable(), isyslog, LOG_ERROR, Open(), sock, and SVDRPhosts.

Referenced by cSVDRP::Process().

void cSocket::Close ( void  )
private

Definition at line 56 of file svdrp.c.

References sock.

Referenced by Open(), and ~cSocket().

bool cSocket::Open ( void  )

Definition at line 64 of file svdrp.c.

References Close(), cSVDRPhosts::LocalhostOnly(), LOG_ERROR, port, queue, sock, and SVDRPhosts.

Referenced by Accept().

Member Data Documentation

int cSocket::port
private

Definition at line 18 of file svdrp.h.

Referenced by cSocket(), and Open().

int cSocket::queue
private

Definition at line 20 of file svdrp.h.

Referenced by cSocket(), and Open().

int cSocket::sock
private

Definition at line 19 of file svdrp.h.

Referenced by Accept(), Close(), cSocket(), and Open().


The documentation for this class was generated from the following files: