forked from godotengine/godot
-
Notifications
You must be signed in to change notification settings - Fork 0
class_tcp_server
reduz edited this page Feb 23, 2014
·
9 revisions
####Inherits: Reference ####Category: Core
TCP Server.
- int listen ( int port, StringArray accepted_hosts=StringArray() )
- bool is_connection_available ( ) const
- Object take_connection ( )
- void stop ( )
TCP Server class. Listens to connections on a port and returns a StreamPeerTCP when got a connection.
- int listen ( int port, StringArray accepted_hosts=StringArray() )
Listen on a port, alternatively give a white-list of accepted hosts.
- bool is_connection_available ( ) const
Return true if a connection is available for taking.
- Object take_connection ( )
If a connection is available, return a StreamPeerTCP with the connection/
- void stop ( )
Stop listening.