Open wayne-lu opened 7 years ago
I use master branch and create copy the code.
using(IServer server = new XGainServer(IPAddress.Any, 5000, () => new SocketProcessor()) { server.OnNewMessage += (sender, message) => {} // assign your method Task worker = server.Start(); worker.Wait(); }
but is error, and miss SocketProcessor, how to use XGain ? can you give me a sample ?
same here
Hello @wayne-lu and @ThodorisElissaios. I've added a two projects - SampleClient and SampleServer. Please take a look and share feedback :)
I use master branch and create copy the code.
using(IServer server = new XGainServer(IPAddress.Any, 5000, () => new SocketProcessor()) { server.OnNewMessage += (sender, message) => {} // assign your method Task worker = server.Start(); worker.Wait(); }
but is error, and miss SocketProcessor, how to use XGain ? can you give me a sample ?