|
| UdpSocket () |
| Constructs a UdpSocket object by default.
|
|
| UdpSocket (NetProtocol protocol) |
| Constructs a UdpSocket object with a net protocol. More...
|
|
| UdpSocket (UdpSocket &&udpSocket) |
| Constructs a UdpSocket object with another one by move semantic. More...
|
|
SocketState | Bind (UInt16 port) |
| Binds a specific port. More...
|
|
SocketState | Bind (const IpAddress &address) |
| Binds a specific IpAddress. More...
|
|
bool | Create (NetProtocol protocol) |
| Creates a UDP socket. More...
|
|
void | EnableBroadcasting (bool broadcasting) |
| Enables broadcasting. More...
|
|
IpAddress | GetBoundAddress () const |
| Gets the bound address. More...
|
|
UInt16 | GetBoundPort () const |
| Gets the port of the bound address. More...
|
|
bool | IsBroadcastingEnabled () const |
| Checks whether the broadcasting is enabled. More...
|
|
std::size_t | QueryMaxDatagramSize () |
| Gets the maximum datagram size allowed. More...
|
|
bool | Receive (void *buffer, std::size_t size, IpAddress *from, std::size_t *received) |
| Receives the data available. More...
|
|
bool | ReceiveMultiple (NetBuffer *buffers, std::size_t bufferCount, IpAddress *from, std::size_t *received) |
| Receive multiple datagram from one peer. More...
|
|
bool | ReceivePacket (NetPacket *packet, IpAddress *from) |
| Receives the packet available. More...
|
|
bool | Send (const IpAddress &to, const void *buffer, std::size_t size, std::size_t *sent) |
| Sends the data available. More...
|
|
bool | SendMultiple (const IpAddress &to, const NetBuffer *buffers, std::size_t bufferCount, std::size_t *sent) |
| Sends multiple buffers as one datagram. More...
|
|
bool | SendPacket (const IpAddress &to, const NetPacket &packet) |
| Sends the packet available. More...
|
|
| AbstractSocket (const AbstractSocket &)=delete |
|
| AbstractSocket (AbstractSocket &&abstractSocket) |
| Constructs a AbstractSocket object with another one by move semantic. More...
|
|
virtual | ~AbstractSocket () |
| Destructs the object and calls Close. More...
|
|
void | Close () |
| Closes the socket.
|
|
void | EnableBlocking (bool blocking) |
| Enables blocking. More...
|
|
SocketError | GetLastError () const |
| Gets the last error. More...
|
|
SocketHandle | GetNativeHandle () const |
| Gets the internal socket handle. More...
|
|
SocketState | GetState () const |
| Gets the internal state. More...
|
|
SocketType | GetType () const |
| Gets the internal type. More...
|
|
bool | IsBlockingEnabled () const |
| Checks whether the blocking is enabled. More...
|
|
std::size_t | QueryAvailableBytes () const |
| Queries the available bytes. More...
|
|
std::size_t | QueryReceiveBufferSize () const |
| Queries the maximum socket receive buffer size. More...
|
|
std::size_t | QuerySendBufferSize () const |
| Queries the maximum socket send buffer size. More...
|
|
void | SetReceiveBufferSize (std::size_t size) |
| Sets the maximum receive buffer size. More...
|
|
void | SetSendBufferSize (std::size_t size) |
| Sets the maximum send buffer size. More...
|
|
AbstractSocket & | operator= (const AbstractSocket &)=delete |
|
AbstractSocket & | operator= (AbstractSocket &&abstractSocket) |
| Moves the AbstractSocket into this. More...
|
|
| NazaraSignal (OnStateChange, const AbstractSocket *, SocketState) |
|
Network class that represents a UDP socket, allowing for sending/receiving datagrams.