네트워킹 예제 Server.java 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36package univ.inu.embedded; import java.net.*; import java.io.*; public class Server { public Server() { try { ServerSocket ss = new ServerSocket(9000); while (true) { Socket s = ss.accept(); (new ServerThread(s)).start(); } } catch (IOException e) { e.printStackTrace(); } } public static.. 더보기 이전 1 ··· 3 4 5 6 7 8 9 ··· 98 다음