#include <ConnectSocket.h>
Inheritance diagram for ConnectSocket:
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 |
|
Definition at line 26 of file ConnectSocket.cpp. |
|
Definition at line 36 of file ConnectSocket.cpp. |
|
Implements RealSocket. Reimplemented in MyConnectSocket. Definition at line 35 of file ConnectSocket.h. |
|
Reimplemented from RealSocket. Reimplemented in MyConnectSocket. Definition at line 38 of file ConnectSocket.h. |
|
Reimplemented from RealSocket. Definition at line 36 of file ConnectSocket.h. Referenced by Connect(). |
|
Implements RealSocket. Reimplemented in MyConnectSocket. Definition at line 34 of file ConnectSocket.h. |
|
Implements RealSocket. Reimplemented in MyConnectSocket. Definition at line 37 of file ConnectSocket.h. |
|
Definition at line 44 of file ConnectSocket.cpp. References Connect(). |
|
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(). |
|
Definition at line 142 of file ConnectSocket.cpp. References Socket::Close(), and RealSocket::IsConnected(). |
|
Definition at line 42 of file ConnectSocket.h. Referenced by Connect(). |