32 #include "../api_network.h"
76 int get_handle()
const;
86 Event get_read_event();
91 Event get_write_event();
103 void bind(
const SocketName &local_name,
bool force_bind =
true);
109 void set_handle(
int socket,
bool close_socket);
118 int send(
const void *data,
int len,
const SocketName &to);
127 int receive(
void *data,
int len,
SocketName &out_from);
136 int peek(
void *data,
int len,
SocketName &out_from);
143 std::shared_ptr<UDPSocket_Impl> impl;
UDP socket.
Definition: udp_socket.h:45
Socket name; container class for an IP address and port.
Definition: socket_name.h:45
OS level event.
Definition: Core/System/event.h:48