Java SE/Socket 01 썸네일형 리스트형 Socket 01 클라이언트에서 숫자를 전송하면 서버측에서 구구단을 작성하여 다시 클라이언트에게 되돌려 주는 예제 클라이언트 측 import java.net.*; import java.io.*; class GuguClient { public static void main(String[] args) throws Exception { //InetAddress ia = InetAddress.getLocalHost(); Socket soc = new Socket("localhost", 1234); PrintWriter pw = new PrintWriter(new OutputStreamWriter(soc.getOutputStream())); BufferedReader br = new BufferedReader(new InputSt.. 더보기 이전 1 다음