Page 382 - 완) I MDP 프로젝트 작품 보고서(전체과 1학년)1.6
P. 382

인천전자마이스터고                                                                            전자회로설계과



                                    }

                            }catch(Exception e){
                                    e.printStackTrace();
                            }finally {
                                    try{
                                            in.close();

                                    } catch(Exception e) {


                                    }
                                    try{
                                            socket.close();

                                    }catch(Exception e){


                                    }
                            }



                    }
            }




            < ServerTest.java >

            package com.example.user.appclient;


            import java.net.ServerSocket;
            import java.net.Socket;



            public class ServerTest {


                    public void Server() {
                            ServerSocket serverSocket = null;
                            Socket socket = null;

                            ReceiveThread rt = null;


                            try{
                                    serverSocket = new ServerSocket(9999);
                                    System.out.println("Open");

                                    new ActionExam();




                                                         -  375  -
   377   378   379   380   381   382   383   384   385   386   387