class_streampeertcp - dragonsoulz/godot GitHub Wiki
StreamPeerTCP
####Inherits: StreamPeer ####Category: Core
Brief Description
TCP Stream peer.
Member Functions
- int connect ( String host, int ip )
- bool is_connected ( ) const
- int get_status ( ) const
- String get_connected_host ( ) const
- int get_connected_port ( ) const
- void disconnect ( )
Numeric Constants
- STATUS_NONE = 0
- STATUS_CONNECTING = 1
- STATUS_CONNECTED = 2
- STATUS_ERROR = 3
Description
TCP Stream peer. This object can be used to connect to TCP servers, or also is returned by a tcp server.