aboutsummaryrefslogtreecommitdiff
path: root/drivers/unix/stream_peer_tcp_posix.h
diff options
context:
space:
mode:
authorJuan Linietsky2015-12-13 12:53:29 -0300
committerJuan Linietsky2015-12-13 12:53:29 -0300
commit95a469ad28e54fe05c3ae548725e557f91021d79 (patch)
tree52b9ee5ebd82671f69e4bab9417ebaf751914048 /drivers/unix/stream_peer_tcp_posix.h
parent451b1d91446f6e15763b4d6ec3bd6d74c2be8080 (diff)
downloadgodot-95a469ad28e54fe05c3ae548725e557f91021d79.tar.gz
godot-95a469ad28e54fe05c3ae548725e557f91021d79.tar.zst
godot-95a469ad28e54fe05c3ae548725e557f91021d79.zip
added binary API to StreamPeer, fixes #2863
Diffstat (limited to 'drivers/unix/stream_peer_tcp_posix.h')
-rw-r--r--drivers/unix/stream_peer_tcp_posix.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/unix/stream_peer_tcp_posix.h b/drivers/unix/stream_peer_tcp_posix.h
index 9b1716ac4..817f24c91 100644
--- a/drivers/unix/stream_peer_tcp_posix.h
+++ b/drivers/unix/stream_peer_tcp_posix.h
@@ -67,6 +67,8 @@ public:
virtual Error get_data(uint8_t* p_buffer, int p_bytes);
virtual Error get_partial_data(uint8_t* p_buffer, int p_bytes,int &r_received);
+ virtual int get_available_bytes() const;
+
void set_socket(int p_sockfd, IP_Address p_host, int p_port);
virtual IP_Address get_connected_host() const;