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