TCP Stream peer.
TCP Stream peer. This object can be used to connect to TCP servers, or also is returned by a TCP server.
Connect to the specified host:port pair. A hostname will be resolved if valid. Returns [code]OK[/code] on success or [code]FAILED[/code] on failure.
Disconnect from host.
Return the IP of this peer.
Return the port of this peer.
Return the status of the connection, see [enum StreamPeerTCP.Status].
Returns [code]true[/code] if this peer is currently connected to a host, [code]false[/code] otherwise.
Disable Nagle algorithm to improve latency for small packets.
Note that for applications that send large packets, or need to transfer a lot of data, this can reduce total bandwidth.
The initial status of the [code]StreamPeerTCP[/code], also the status after a disconnect.
A status representing a [code]StreamPeerTCP[/code] that is connecting to a host.
A status representing a [code]StreamPeerTCP[/code] that is connected to a host.
A status representing a [code]StreamPeerTCP[/code] in error state.