public static void openSender(Clients clients, User user) { ThreadSender sender = new ThreadSender(clients , user); Thread thLis = new Thread(new ThreadStart(sender.runThreadSender)); thLis.Start(); }
public static void openListener(Clients clients) { ThreadListener listener = new ThreadListener(clients); Thread thLis = new Thread(new ThreadStart(listener.runThreadListener)); thLis.Start(); }
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; }