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

ConnectSocket Class Reference

#include <ConnectSocket.h>

Inheritance diagram for ConnectSocket:

RealSocket Socket MyConnectSocket

Public Member Functions

 ConnectSocket ()
virtual ~ConnectSocket ()
void Connect (string _addr, int _port, SocketType type=TYPE_TCP, bool blocking=true)
void Connect (sockaddr_in _saddr, SocketType type=TYPE_TCP, bool blocking=true)
void Disconnect ()
virtual void __OnRead ()
virtual void __OnClose ()
virtual void __OnConnected ()
virtual void __OnReadError ()
virtual void __OnConnClosed ()

Private Attributes

bool blocking

Constructor & Destructor Documentation

ConnectSocket::ConnectSocket  ) 
 

Definition at line 26 of file ConnectSocket.cpp.

ConnectSocket::~ConnectSocket  )  [virtual]
 

Definition at line 36 of file ConnectSocket.cpp.


Member Function Documentation

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

Implements RealSocket.

Reimplemented in MyConnectSocket.

Definition at line 35 of file ConnectSocket.h.

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

Reimplemented from RealSocket.

Reimplemented in MyConnectSocket.

Definition at line 38 of file ConnectSocket.h.

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

Reimplemented from RealSocket.

Definition at line 36 of file ConnectSocket.h.

Referenced by Connect().

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

Implements RealSocket.

Reimplemented in MyConnectSocket.

Definition at line 34 of file ConnectSocket.h.

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

Implements RealSocket.

Reimplemented in MyConnectSocket.

Definition at line 37 of file ConnectSocket.h.

void ConnectSocket::Connect sockaddr_in  _saddr,
SocketType  type = TYPE_TCP,
bool  blocking = true
 

Definition at line 44 of file ConnectSocket.cpp.

References Connect().

void ConnectSocket::Connect string  _addr,
int  _port,
SocketType  type = TYPE_TCP,
bool  blocking = true
 

Definition at line 52 of file ConnectSocket.cpp.

References __OnConnected(), blocking, CONNECT_FAILED, StringLib::debug(), StringLib::error(), Singleton< SocketHandler >::getInstance(), Socket::GetLastError(), Socket::GetSock(), RealSocket::IsConnected(), StringLib::itos(), Socket::MakeSock(), NONBLOCK_FAILED, Resolv(), RESOLV_FAILED, SOCKETHANDLING_FAILED, and SSL_CONNECT_FAILED.

Referenced by Connect().

void ConnectSocket::Disconnect  ) 
 

Definition at line 142 of file ConnectSocket.cpp.

References Socket::Close(), and RealSocket::IsConnected().


Field Documentation

bool ConnectSocket::blocking [private]
 

Definition at line 42 of file ConnectSocket.h.

Referenced by Connect().


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