diff options
author | Fabio Alessandrelli <fabio.alessandrelli@gmail.com> | 2019-08-22 19:00:12 +0200 |
---|---|---|
committer | Fabio Alessandrelli <fabio.alessandrelli@gmail.com> | 2020-02-16 01:11:30 +0100 |
commit | 2811f070840e208cc22485b6ed8dc7f65a631459 (patch) | |
tree | 61d8018783d6c15bea7674eb39a35da4819197a2 /core/io/net_socket.h | |
parent | cb68d832f29d315352e5209e5127d49ec5de77d5 (diff) | |
download | redot-engine-2811f070840e208cc22485b6ed8dc7f65a631459.tar.gz |
Add peek option to NetSocket recv_from.
Diffstat (limited to 'core/io/net_socket.h')
-rw-r--r-- | core/io/net_socket.h | 2 |
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; |