쓰레드1 EchoThreadServer package kr.co.smu.network; import java.net.*;import java.io.*; public class EchoThreadServer { public static void main(String[] args) {try{ServerSocket server = new ServerSocket(10001);System.out.println("접속을 기다립니다.");while(true){Socket sock = server.accept();EchoThread echothread = new EchoThread(sock);echothread.start();} // while}catch(Exception e){System.out.println(e);}} // main} class Echo.. 2016. 1. 22. 이전 1 다음