lukasz-pyrzyk / XGain

TCP/IP server based on the top of TcpListener and TPL

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

how to use XGain

wayne-lu opened this issue · comments

commented

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 :)