Socket udp.
Protected Member Functions | |
bool | Receive (PeerInfo &peerInfo, void *data, Int32 bufferSize, Int32 &dataSize, TimeSpan timeOut) |
Receives data. More... | |
void | Send (PeerInfo &peerInfo, const void *data, Int32 dataSize) |
Send data. More... | |
Additional Inherited Members | |
![]() | |
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... | |
|
protected |
Receives data.
peerInfo | [in,out] Infos of remote peer. |
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. |