private void init() { Server s = new Server(); s.getConnected += getConnected; s.onClose += lostConnected; s.receiveMsg += receiveMsg; s.init(); }
static void Main(string[] args) { Server s = new Server(); s.getConnected += getConnected; s.receiveMsg += receiveMsg; s.onClose += onClose; s.init(); //s.getConnected += getConnected(""); //Client c = new Client(); //Thread t = new Thread(new ThreadStart(c.init)); //t.Start(); }
static void Main() { Server s = new Server(); s.init(); }