forked from godotengine/godot
-
Notifications
You must be signed in to change notification settings - Fork 0
class_streampeertcp
Lukas Sägesser edited this page Jun 22, 2015
·
10 revisions
####Inherits: StreamPeer ####Category: Core
TCP Stream peer.
- int connect ( String host, int port )
- bool is_connected ( ) const
- int get_status ( ) const
- String get_connected_host ( ) const
- int get_connected_port ( ) const
- void disconnect ( )
- STATUS_NONE = 0
- STATUS_CONNECTING = 1
- STATUS_CONNECTED = 2
- STATUS_ERROR = 3
TCP Stream peer. This object can be used to connect to TCP servers, or also is returned by a tcp server.