#include <RealSocket.h>
Inheritance diagram for RealSocket:
Public Member Functions | |
RealSocket (socket_t _sock) | |
string | GetReadBuf () |
int | GetReadLen () |
string | GetWriteBuf () |
int | GetWriteLen () |
void | Write (string str) |
bool | IsConnected () |
Private Member Functions | |
int | WriteBuffer (string writeval) |
int | WriteBuffer (void *writeval, int writelen) |
int | WriteBuffer (char *writeval) |
int | Read (string &readval) |
int | Read (void *readval, int readlen) |
void | OnRead () |
void | OnWrite () |
void | OnConnectionError () |
virtual void | __OnConnClosed () |
virtual void | __OnConnected () |
virtual void | __OnRead ()=0 |
virtual void | __OnClose ()=0 |
virtual void | __OnReadError ()=0 |
Private Attributes | |
string | ReadBuf |
string | WriteBuf |
int | ReadLen |
int | WriteLen |
Friends | |
class | SocketHandler |
class | ConnectSocket |
|
Definition at line 26 of file RealSocket.cpp. |
|
Implements Socket. Implemented in MyConnectSocket, MyIncomingSocket, ConnectSocket, and IncomingSocket. |
|
Reimplemented from Socket. Reimplemented in MyConnectSocket, MyIncomingSocket, ConnectSocket, and IncomingSocket. Definition at line 57 of file RealSocket.h. |
|
Reimplemented from Socket. Reimplemented in MyIncomingSocket, ConnectSocket, and IncomingSocket. Definition at line 58 of file RealSocket.h. |
|
Implements Socket. Implemented in MyConnectSocket, MyIncomingSocket, ConnectSocket, and IncomingSocket. Referenced by OnRead(). |
|
Implements Socket. Implemented in MyConnectSocket, MyIncomingSocket, ConnectSocket, and IncomingSocket. |
|
Definition at line 39 of file RealSocket.cpp. Referenced by MyIncomingSocket::__OnRead(), and MyConnectSocket::__OnRead(). |
|
Definition at line 47 of file RealSocket.cpp. References ReadBuf. Referenced by MyIncomingSocket::__OnRead(). |
|
Definition at line 54 of file RealSocket.cpp. Referenced by OnWrite(). |
|
Definition at line 61 of file RealSocket.cpp. References WriteBuf. |
|
Definition at line 272 of file RealSocket.cpp. Referenced by ConnectSocket::Connect(), ConnectSocket::Disconnect(), SocketHandler::Handle(), Read(), and WriteBuffer(). |
|
Definition at line 266 of file RealSocket.cpp. References Socket::Close(). |
|
Definition at line 238 of file RealSocket.cpp. References __OnRead(), Read(), READ_FAILED, ReadBuf, and ReadLen. |
|
Definition at line 254 of file RealSocket.cpp. References GetWriteBuf(), WriteBuf, WriteBuffer(), and WriteLen. |
|
Definition at line 162 of file RealSocket.cpp. References Socket::GetSock(), IsConnected(), NO_SSL, Socket::OnConnClosed(), and SOCKET_CLOSED. |
|
Definition at line 150 of file RealSocket.cpp. References bufflen. Referenced by OnRead(). |
|
Definition at line 68 of file RealSocket.cpp. References WriteBuf, and WriteLen. Referenced by IncomingSocket::Tellroom(). |
|
Definition at line 132 of file RealSocket.cpp. References WriteBuffer(). |
|
Definition at line 85 of file RealSocket.cpp. References Socket::GetSock(), IsConnected(), NO_SSL, SOCKET_CLOSED, and SOCKET_DISCONNECTED. |
|
Definition at line 77 of file RealSocket.cpp. Referenced by OnWrite(), and WriteBuffer(). |
|
Definition at line 31 of file RealSocket.h. |
|
Reimplemented from Socket. Definition at line 30 of file RealSocket.h. |
|
Definition at line 63 of file RealSocket.h. Referenced by GetReadLen(), OnRead(), and RealSocket(). |
|
Definition at line 65 of file RealSocket.h. Referenced by OnRead(), and RealSocket(). |
|
Definition at line 64 of file RealSocket.h. Referenced by GetWriteLen(), OnWrite(), RealSocket(), and Write(). |
|
Definition at line 66 of file RealSocket.h. Referenced by OnWrite(), RealSocket(), and Write(). |