Page 844 - 3-2
P. 844

*/


            import java.net.*;


            import java.util.*;
            import java.util.concurrent.TimeUnit;


            import javax.swing.JButton;
            import javax.swing.JFrame;
            import javax.swing.JPanel;
            import javax.swing.JTextField;
            import javax.swing.border.EmptyBorder;


            import com.pi4j.io.gpio.Pin;


            import java.awt.event.ActionEvent;
            import java.awt.event.ActionListener;
            import java.io.DataInputStream;
            import java.io.DataOutputStream;
            import java.io.IOException;


            public class ServerMain extends Thread {
                    int cli=0;
              static int my=0;
              static int acc=0;
              static ServerSocket serv;
              static Socket sock;
              Thread t;
              DataInputStream din;
              static DataOutputStream dout;
              String str;
              static Socket c_sock;
              static JFrame jframe = new JFrame("Test");
              static JPanel contentPane;
              static JButton button1 = new JButton("1");
              static JTextField textField;




              Vector v;     // 콜렉션클래스 자료수집하는클래스 즉 자료를 저장하는 클래스가 벡타에요


              public ServerMain () {        // 생성자
                      v = new Vector();
                      System.out.println("Timerstart");


                        Timer timer = new Timer();//4 초에 한번 클라이언트 접속을 확인.


                                                         - 844 -
   839   840   841   842   843   844   845   846   847   848   849