예제 #1
0
        public static void openSender(Clients clients, User user)
        {
            ThreadSender sender = new ThreadSender(clients , user);

                Thread thLis = new Thread(new ThreadStart(sender.runThreadSender));
                thLis.Start();
        }
예제 #2
0
        public static void openListener(Clients clients)
        {
            ThreadListener listener = new ThreadListener(clients);

            Thread thLis = new Thread(new ThreadStart(listener.runThreadListener));
            thLis.Start();
        }
예제 #3
0
 public ThreadSender(Clients clientsList, User message, int port = 40404)
 {
     this.clientsList = clientsList;
     this.message = message;
     this.port = port;
 }
 public ThreadListener(Clients clientsList, int port = 194)
 {
     this.clientsList = clientsList;
     this.port = port;
 }