lukasz-pyrzyk / XGain

TCP/IP server based on the top of TcpListener and TPL
Other
7 stars 1 forks source link

how to use XGain #20

Open wayne-lu opened 7 years ago

wayne-lu commented 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 ?

ThodorisElissaios commented 7 years ago

same here

lukasz-pyrzyk commented 7 years ago

Hello @wayne-lu and @ThodorisElissaios. I've added a two projects - SampleClient and SampleServer. Please take a look and share feedback :)