diff options
author | TestSubject06 <zzzaaccckk@yahoo.com> | 2023-06-13 19:48:35 -0400 |
---|---|---|
committer | TestSubject06 <zzzaaccckk@yahoo.com> | 2023-06-13 19:52:19 -0400 |
commit | 9e2f48c749ba55c6b29651af915e670c0bdee649 (patch) | |
tree | a11a5b50457e9eda21aecd397d9ae8b08b9c8f32 /modules/enet/enet_connection.h | |
parent | eb86dabee07e8dfce3b06cbd557b50b74afd3d6c (diff) | |
download | redot-engine-9e2f48c749ba55c6b29651af915e670c0bdee649.tar.gz |
Add socket_send method to ENetConnection.
* Sends a given packet toward a given destination address and port, using the current ENetHost's socket.
Diffstat (limited to 'modules/enet/enet_connection.h')
-rw-r--r-- | modules/enet/enet_connection.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/enet/enet_connection.h b/modules/enet/enet_connection.h index 481afc48bb..ee0cd831de 100644 --- a/modules/enet/enet_connection.h +++ b/modules/enet/enet_connection.h @@ -109,6 +109,7 @@ private: public: void broadcast(enet_uint8 p_channel, ENetPacket *p_packet); + void socket_send(const String &p_address, int p_port, const PackedByteArray &p_packet); Error create_host_bound(const IPAddress &p_bind_address = IPAddress("*"), int p_port = 0, int p_max_peers = 32, int p_max_channels = 0, int p_in_bandwidth = 0, int p_out_bandwidth = 0); Error create_host(int p_max_peers = 32, int p_max_channels = 0, int p_in_bandwidth = 0, int p_out_bandwidth = 0); void destroy(); |