Mixe for Privacy and Anonymity in the Internet
|
#include <CAClientSocket.hpp>
Public Member Functions | |
virtual | ~CAClientSocket () |
virtual SINT32 | sendFully (const UINT8 *buff, UINT32 len)=0 |
Sends all data over the network. More... | |
virtual SINT32 | receive (UINT8 *buff, UINT32 len)=0 |
Will receive some bytes from the socket. More... | |
virtual SOCKET | getSocket ()=0 |
Returns the number of the Socket used. More... | |
SINT32 | receiveFully (UINT8 *buff, UINT32 len) |
Receives all len bytes. More... | |
Definition at line 32 of file CAClientSocket.hpp.
|
inlinevirtual |
Definition at line 35 of file CAClientSocket.hpp.
|
pure virtual |
Returns the number of the Socket used.
Which will be always the same number, even after close(), until the Socket is recreated using create()
Implemented in CASocket.
Referenced by receiveFully().
Will receive some bytes from the socket.
May block or not depending on the implementation.
buff | the buffer which get the received data |
len | size of buff |
E_AGAIN,if | socket was in non-blocking mode and receive would block or a timeout was reached |
0 | if socket was gracefully closed |
Implemented in CATLSClientSocket, and CASocket.
Referenced by receiveFully().
Receives all len bytes.
This blocks until all bytes are received or an error occured.
Definition at line 33 of file CAClientSocket.cpp.
References CASocketGroup::add(), E_AGAIN, E_SUCCESS, E_UNKNOWN, getSocket(), len, msSleep(), receive(), and CASocketGroup::select().
Referenced by CALocalProxy::init(), CALocalProxy::processKeyExchange(), CAMuxSocket::receive(), and CAMuxSocket::receiveFully().
Sends all data over the network.
This may block until all data is send.
buff | - the buffer of data to send |
len | - content length |
E_UNKNOWN,if | an error occured |
E_SUCCESS,if | successful |
Implemented in CATLSClientSocket, and CASocket.