import java.io.DataInputStream;
import java.io.InputStream;
import java.net.ServerSocket;
import java.net.Socket;
public class Service {
public static void main(String[] args) throws Exception {
ServerSocket server = new ServerSocket(10000);
byte[] msg = new byte[20];
//
Socket client = server.accept();
//,8266
InputStream in = new DataInputStream(client.getInputStream());
//,8266
boolean accept = true;
while (accept) {
//
in.read(msg);
System.out.println(new String(msg));
}
in.close();
client.close();
server.close();
}
}