This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.io.*; | |
import java.net.*; | |
import java.lang.Thread; | |
public class EchoServer { | |
public static void main (String[] args) { | |
try { | |
ServerSocket server = new ServerSocket(5566); | |
while (true) { | |
Socket client = server.accept(); |