|  
 TCPInterface, found at TCPInterface.h, is a utility class designed to connect using the TCP protocol in cases where this is necessary. The connection process is similar to RakPeerInterface.h, with the exception that Receive() returns the actual data received, the first byte does not contain any specific identifiers.
 To get connection status updates, use HasNewConnection() and HasLostConnection() There is no sample that uses the TCPInterface class specifically, but TelnetTransport.cpp is a good place to look for a reference. Functions: // Starts the TCP server on the indicated portbool Start(unsigned short port, unsigned short maxIncomingConnections);
  // Stops the TCP servervoid Stop(void);
  // Connect to the specified host on the specified portSystemAddress Connect(const char* host, unsigned short remotePort);
  // Sends a byte streamvoid Send( const char *data, unsigned length, SystemAddress systemAddress );
  // Returns data receivedPacket* Receive( void );
  // Disconnects a player/addressvoid CloseConnection( SystemAddress systemAddress );
  // Deallocates a packet returned by Receivevoid DeallocatePacket( Packet *packet );
  // Queued events of new connectionsSystemAddress HasNewConnection(void);
  // Queued events of lost connectionsSystemAddress HasLostConnection(void);
 |