You've already forked godot
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:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user