Main Page | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | Directories | File List | Namespace Members | Data Fields | Globals

IncomingSocket Class Reference

#include <IncomingSocket.h>

Inheritance diagram for IncomingSocket:

RealSocket Socket MyIncomingSocket

Public Member Functions

 IncomingSocket (socket_t _sock, struct sockaddr_in _sockaddr, ListenServer *_parent)
virtual ~IncomingSocket ()
ListenServerGetParent ()
void Tellroom (string str)
virtual void __OnRead ()
virtual void __OnClose ()
virtual void __OnReadError ()
virtual void __OnConnected ()
virtual void __OnConnClosed ()

Private Member Functions

void OnClose ()

Private Attributes

ListenServerparent

Constructor & Destructor Documentation

IncomingSocket::IncomingSocket socket_t  _sock,
struct sockaddr_in  _sockaddr,
ListenServer _parent
 

Definition at line 26 of file IncomingSocket.cpp.

References parent.

IncomingSocket::~IncomingSocket  )  [virtual]
 

Definition at line 34 of file IncomingSocket.cpp.


Member Function Documentation

virtual void IncomingSocket::__OnClose  )  [inline, virtual]
 

Implements RealSocket.

Reimplemented in MyIncomingSocket.

Definition at line 34 of file IncomingSocket.h.

Referenced by OnClose().

virtual void IncomingSocket::__OnConnClosed  )  [inline, virtual]
 

Reimplemented from RealSocket.

Reimplemented in MyIncomingSocket.

Definition at line 37 of file IncomingSocket.h.

virtual void IncomingSocket::__OnConnected  )  [inline, virtual]
 

Reimplemented from RealSocket.

Reimplemented in MyIncomingSocket.

Definition at line 36 of file IncomingSocket.h.

virtual void IncomingSocket::__OnRead  )  [inline, virtual]
 

Implements RealSocket.

Reimplemented in MyIncomingSocket.

Definition at line 33 of file IncomingSocket.h.

virtual void IncomingSocket::__OnReadError  )  [inline, virtual]
 

Implements RealSocket.

Reimplemented in MyIncomingSocket.

Definition at line 35 of file IncomingSocket.h.

ListenServer * IncomingSocket::GetParent  ) 
 

Definition at line 41 of file IncomingSocket.cpp.

Referenced by MyIncomingSocket::__OnConnected(), and Tellroom().

void IncomingSocket::OnClose  )  [private]
 

Definition at line 48 of file IncomingSocket.cpp.

References __OnClose().

void IncomingSocket::Tellroom string  str  ) 
 

Definition at line 55 of file IncomingSocket.cpp.

References Singleton< SocketHandler >::getInstance(), GetParent(), SOCKETHANDLING_FAILED, and RealSocket::Write().


Field Documentation

ListenServer* IncomingSocket::parent [private]
 

Definition at line 41 of file IncomingSocket.h.

Referenced by IncomingSocket().


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