public TelnetTerminal acceptConnection ( ) throws IOException { Socket clientSocket = serverSocket . accept ( ) ; clientSocket . setTcpNoDelay ( true ) ; return new TelnetTerminal ( clientSocket , charset ) ; }
Waits for the next client to connect in to our server and returns a Terminal implementation TelnetTerminal that represents the remote terminal this client is running . The terminal can be used just like any other Terminal but keep in mind that all operations are sent over the network .