summaryrefslogtreecommitdiff
path: root/core/io/net_socket.h
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2020-02-18 15:01:53 +0100
committerGitHub <noreply@github.com>2020-02-18 15:01:53 +0100
commit27326f8238b5ba5077fff408d3b3255b356a959e (patch)
treeb28c39a5a2fbc313e2a463b64bf8a6141083ed6c /core/io/net_socket.h
parent213a85521dcac9c01e1e4746733e606b610c0db4 (diff)
parent9eea2cf9d67ed850eb9b7c8da1995ef574ba5ce1 (diff)
Merge pull request #36296 from Faless/dtls/enet_vulkan
DTLS support + optional ENet encryption
Diffstat (limited to 'core/io/net_socket.h')
-rw-r--r--core/io/net_socket.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/io/net_socket.h b/core/io/net_socket.h
index 710df2dd78..376fd87a27 100644
--- a/core/io/net_socket.h
+++ b/core/io/net_socket.h
@@ -61,7 +61,7 @@ public:
virtual Error connect_to_host(IP_Address p_addr, uint16_t p_port) = 0;
virtual Error poll(PollType p_type, int timeout) const = 0;
virtual Error recv(uint8_t *p_buffer, int p_len, int &r_read) = 0;
- virtual Error recvfrom(uint8_t *p_buffer, int p_len, int &r_read, IP_Address &r_ip, uint16_t &r_port) = 0;
+ virtual Error recvfrom(uint8_t *p_buffer, int p_len, int &r_read, IP_Address &r_ip, uint16_t &r_port, bool p_peek = false) = 0;
virtual Error send(const uint8_t *p_buffer, int p_len, int &r_sent) = 0;
virtual Error sendto(const uint8_t *p_buffer, int p_len, int &r_sent, IP_Address p_ip, uint16_t p_port) = 0;
virtual Ref<NetSocket> accept(IP_Address &r_ip, uint16_t &r_port) = 0;