# Home    # nevrax.com   
Nevrax
Nevrax.org
#News
#Mailing-list
#Documentation
#CVS
#Bugs
#License
Docs
 
Documentation  
Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages   Search  

NLNET::CListenTask Class Reference

Code of listening thread. More...

#include <buf_server.h>

Inheritance diagram for NLNET::CListenTask:

NLMISC::IRunnable NLNET::CServerTask List of all members.

Public Methods

 CListenTask (CBufServer *server)
 Constructor. More...

void init (uint16 port)
 Begins to listen on the specified port (call before running thread). More...

virtual void run ()
 Run (exits when the listening socket disconnects). More...

void close ()
 Close listening socket. More...

const CInetAddresslocalAddr ()
 Returns the listening address. More...


Private Attributes

CBufServer_Server
CListenSock _ListenSock

Detailed Description

Code of listening thread.

Definition at line 85 of file buf_server.h.


Constructor & Destructor Documentation

NLNET::CListenTask::CListenTask CBufServer   server [inline]
 

Constructor.

Definition at line 90 of file buf_server.h.

References _Server, and NLNET::CServerTask::CServerTask.


Member Function Documentation

void NLNET::CListenTask::close   [inline]
 

Close listening socket.

Definition at line 99 of file buf_server.h.

References _ListenSock.

void NLNET::CListenTask::init uint16    port
 

Begins to listen on the specified port (call before running thread).

Definition at line 110 of file buf_server.cpp.

References _ListenSock, and nlnettrace.

const CInetAddress& NLNET::CListenTask::localAddr   [inline]
 

Returns the listening address.

Definition at line 102 of file buf_server.h.

References _ListenSock.

void NLNET::CListenTask::run   [virtual]
 

Run (exits when the listening socket disconnects).

Implements NLMISC::IRunnable.

Definition at line 739 of file buf_server.cpp.

References _ListenSock, _Server, NLNET::CServerTask::exitRequired, nldebug, nlerror, nlinfo, nlnettrace, and res.


Member Data Documentation

CListenSock NLNET::CListenTask::_ListenSock [private]
 

Definition at line 107 of file buf_server.h.

Referenced by close, init, localAddr, and run.

CBufServer* NLNET::CListenTask::_Server [private]
 

Definition at line 106 of file buf_server.h.

Referenced by CListenTask, and run.


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