aboutsummaryrefslogtreecommitdiff
path: root/core/io/tcp_server.h
diff options
context:
space:
mode:
authorAriel Manzur2016-10-18 18:53:18 -0300
committerAriel Manzur2016-10-18 18:53:18 -0300
commit887a897c02144f2d01896d3112bdae5ce7d6df5c (patch)
tree5557c275d7cf9d32312b66db8f1003676e318d16 /core/io/tcp_server.h
parent048bffd13a49067e646f65152c3cc6b87bacc1c3 (diff)
downloadgodot-887a897c02144f2d01896d3112bdae5ce7d6df5c.tar.gz
godot-887a897c02144f2d01896d3112bdae5ce7d6df5c.tar.zst
godot-887a897c02144f2d01896d3112bdae5ce7d6df5c.zip
Diffstat (limited to 'core/io/tcp_server.h')
-rw-r--r--core/io/tcp_server.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/io/tcp_server.h b/core/io/tcp_server.h
index 512a7e640..883a3ef2f 100644
--- a/core/io/tcp_server.h
+++ b/core/io/tcp_server.h
@@ -41,11 +41,11 @@ protected:
static TCP_Server* (*_create)();
//bind helper
- Error _listen(uint16_t p_port,DVector<String> p_accepted_hosts=DVector<String>());
+ Error _listen(uint16_t p_port, IP_Address::AddrType p_type = IP_Address::TYPE_IPV4 ,DVector<String> p_accepted_hosts=DVector<String>());
static void _bind_methods();
public:
- virtual Error listen(uint16_t p_port,const List<String> *p_accepted_hosts=NULL)=0;
+ virtual Error listen(uint16_t p_port, IP_Address::AddrType p_type = IP_Address::TYPE_IPV4, const List<String> *p_accepted_hosts=NULL)=0;
virtual bool is_connection_available() const=0;
virtual Ref<StreamPeerTCP> take_connection()=0;