vdr  1.7.31
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)
 cSocket (int Port, int Queue=1)
 ~cSocket ()
bool Open (void)
int Accept (void)

Private Member Functions

void Close (void)
void Close (void)

Private Attributes

int port
int sock
int queue

Detailed Description

Definition at line 16 of file include/vdr/svdrp.h.

Constructor & Destructor Documentation

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

Definition at line 46 of file svdrp.c.

References port, queue, and sock.

cSocket::~cSocket ( )

Definition at line 53 of file svdrp.c.

References Close().

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

Member Function Documentation

int cSocket::Accept ( void  )

Definition at line 109 of file svdrp.c.

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

Referenced by cSVDRP::Process().

int cSocket::Accept ( void  )
void cSocket::Close ( void  )
private
void cSocket::Close ( void  )
private

Definition at line 58 of file svdrp.c.

References sock.

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

bool cSocket::Open ( void  )

Definition at line 66 of file svdrp.c.

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

Referenced by Accept().

bool cSocket::Open ( void  )

Member Data Documentation

int cSocket::port
private

Definition at line 18 of file include/vdr/svdrp.h.

Referenced by cSocket(), and Open().

int cSocket::queue
private

Definition at line 20 of file include/vdr/svdrp.h.

Referenced by cSocket(), and Open().

int cSocket::sock
private

Definition at line 19 of file include/vdr/svdrp.h.

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


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