1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-11 13:10:58 +00:00

Implement TCP Server bind address

(cherry picked from commit b2839343ca)
This commit is contained in:
Fabio Alessandrelli
2017-01-18 08:37:24 +01:00
parent 90a747a52d
commit 43d992fc34
9 changed files with 49 additions and 29 deletions

View File

@@ -35,11 +35,12 @@
class TCPServerPosix : public TCP_Server {
int listen_sockfd;
IP::Type sock_type;
static TCP_Server *_create();
public:
virtual Error listen(uint16_t p_port, const List<String> *p_accepted_hosts = NULL);
virtual Error listen(uint16_t p_port, IP_Address p_bind_address = IP_Address("*"));
virtual bool is_connection_available() const;
virtual Ref<StreamPeerTCP> take_connection();