Packet oriented socket. More...
#include <UdpSocket.h>
Public Member Functions | |
UdpSocket (const UdpSocket &sock) | |
UdpSocket (int listenPortSetToZeroForSending=0) | |
UdpSocket (const String &address, int listenPort=0) | |
UdpSocket & | operator= (const UdpSocket &pmp) |
void | Send (const Array< byte > &packet) |
void | Send (const Array< byte > &packet, const String &address) |
int | Recv (Array< byte > &packet) |
SOCKADDR_IN | ReceivedFromAddress () const |
bool | IsClosed () |
void | Close () |
void | Shutdown (int i=SD_BOTH) |
void | SetNonBlocking () |
void | SetBlocking () |
void | SetLingerOn () |
void | SetLingerOff () |
void | SetNoDelay () |
void | SetSendTimeout (int toMS) |
void | SetRecvTimeout (int toMS) |
int | GetSendTimeout () |
int | GetRecvTimeout () |
int | GetErrorCode () |
int | GetBytesAvail () |
String | GetRemoteIp () |
bool | operator== (const UdpSocket &s) const |
virtual void | CheckMem () const |
virtual void | ValidateMem () const |
Protected Attributes | |
String | m_address |
SocketPtr | m_sock |
int | m_port |
SOCKADDR_IN | m_recvFromAddr |
Friends | |
class | ServerSocket |
class | SocketSet |
Packet oriented socket.
Definition at line 38 of file UdpSocket.h.