Pol  Revision:4b29d2b
Pol::Clib::SocketListener Class Reference

#include <socketsvc.h>

Public Member Functions

 SocketListener (unsigned short port)
 
 SocketListener (unsigned short port, Socket::option opt)
 
void accept (Socket &newsck)
 
bool GetConnection (unsigned int timeout_sec)
 

Private Attributes

Socket _listen_sck
 

Friends

class SocketClientThread
 

Detailed Description

Definition at line 16 of file socketsvc.h.

Constructor & Destructor Documentation

Pol::Clib::SocketListener::SocketListener ( unsigned short  port)
explicit
Pol::Clib::SocketListener::SocketListener ( unsigned short  port,
Socket::option  opt 
)

Member Function Documentation

void Pol::Clib::SocketListener::accept ( Socket newsck)
bool Pol::Clib::SocketListener::GetConnection ( unsigned int  timeout_sec)

Friends And Related Function Documentation

friend class SocketClientThread
friend

Definition at line 25 of file socketsvc.h.

Member Data Documentation

Socket Pol::Clib::SocketListener::_listen_sck
private

Definition at line 28 of file socketsvc.h.

Referenced by accept(), GetConnection(), and SocketListener().


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