static void Main(string[] args) { _listen = new SocketListener(80000, 4096, null); _listen.Init(); _listen.OnSended += _listen_OnSended; _listen.OnMsgReceived += _listen_OnMsgReceived; _listen.Start(8088, "127.0.0.1"); Console.WriteLine("Server start"); Console.ReadKey(); }
public virtual SocketListener GetInstence() { _listener = new SocketListener(80000, 4096, null); _listener.Init(); return(_listener); }