This topic describes how to integrate TCP applications into GameShield. These TCP applications include game logon services and game servers. The access method over TCP is the simplest among all access protocols. To access a TCP application, you only need the IP address and port that is generated by GameShield for the application. No extra step that is required to access a TCP application.
Socket socket = new Socket("127.0.0.1", target_port.toString()); //Establish a TCP persistent connection by using a socket. //The target_port.toString() method returns a local random port number from GameShield.