Page 857 - 3-2
P. 857

{
                                            System.out.println("acc="+ ServerMain.acc);



                                                    try {

                                                            System.out.println("check2="+ check2);
                                                            if(check2==1)

                                                            {
                                                            check2=0;

                                                            ServerMain.dout.writeUTF("acc");
                                                            }

                                                            else
                                                                    {

                                                                    ServerMain.acc=0;
                                                                    ServerMain.c_sock.close();

                                                                    //ServerMain.dout.writeUTF("acc");



                                                                    }
                                                    } catch (IOException e) {

                                                            //ServerMain.acc=0;
                                                            e.printStackTrace();

                                            }
                                                    try {

                                                            Thread.sleep(3000);
                                                    } catch (InterruptedException e) {

                                                            e.printStackTrace();
                                                    }

                                    }
                            }

                    }
            }






            /*
             *  클래스: SocThread
             *  필드: srv(ServerMain)
             *  생성자: SocThread()
             * SocThread  클래스는 ServerThread      를 대신해서 클라이언트를 대기하는 클래스


                                                         - 857 -
   852   853   854   855   856   857   858   859   860   861   862