프로그래밍/자바20 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. Echo package kr.co.smu.network; import java.io.BufferedReader;import java.io.InputStreamReader;import java.io.PrintWriter;import java.net.Socket; public class EchoClient { public static void main(String[] args) {try{Socket socket = new Socket("127.0.0.1", 10001);BufferedReader keyboard = new BufferedReader(new InputStreamReader(System.in));BufferedReader in = new BufferedReader(new InputStreamReader(.. 2016. 1. 22. guestbook VO, DAO 2016. 1. 20. member 2016. 1. 19. 이전 1 2 3 4 5 다음