Socket tcp.
Inheritance diagram for SocketTcp:Public Member Methods | |
| bool | Receive (void *data, Int32 bufferSize, Int32 &dataSize, TimeSpan timeOut=TimeInfinite) |
| Receives data. More... | |
| bool | Send (const void *data, Int32 dataSize, Int32 &dataSent) |
| Send data. More... | |
| bool | ReceiveBuffer (void *data, Int32 dataSize, TimeSpan timeOut=TimeInfinite) |
| Receive a buffer. More... | |
| bool | SendBuffer (const void *data, Int32 dataSize) |
| Sends a buffer. More... | |
Public Member Methods inherited from Socket | |
| Socket () | |
| Default constructor. More... | |
| virtual | ~Socket () |
| Destructor. More... | |
| void | Close () |
| Closes this object. More... | |
| bool | IsOpen () const |
| Query if the socket is open. More... | |
| PCChar8 | GetHostName () const |
| Gets the host name. More... | |
| Int32 | GetPort () const |
| Gets the port. More... | |
| const PeerInfo & | GetPeerInfo () const |
| Gets the peer information. More... | |
| void | SetOption (SocketOption option, bool value) |
| Sets an option. More... | |
| bool Receive | ( | void * | data, |
| Int32 | bufferSize, | ||
| Int32 & | dataSize, | ||
| TimeSpan | timeOut = TimeInfinite |
||
| ) |
Receives data.
| data | [in,out] The receive data buffer. |
| bufferSize | Size of the receive data buffer. |
| dataSize | [in,out] Size of the received data. |
| timeOut | (optional) the time out. Default = Infinite. |
| bool ReceiveBuffer | ( | void * | data, |
| Int32 | dataSize, | ||
| TimeSpan | timeOut = TimeInfinite |
||
| ) |
Receive a buffer.
| data | [in,out] The receive data buffer. |
| dataSize | Size of the data to receive. |
| timeOut | (optional) the time out. Default = Infinite. |
Send data.
| data | The data buffer to send. |
| dataSize | Size of the data to send. |
| dataSent | [in,out] The size of data sent. |
| bool SendBuffer | ( | const void * | data, |
| Int32 | dataSize | ||
| ) |
Sends a buffer.
| data | The data buffer to send. |
| dataSize | Size of the data to send. |