Can you provide a c# server code alone, which is not Unity, so that I can learn easily. I plan to use it to synchronize data between multiple clients.
Task.Run(() => {
while (true)
{
server.Tick();
//TickIncoming();
//TickOutgoing();
}
});
Is such code ok? If you put it into c# to run alone, please give pointers on what to optimize.
Using kcp for the first time, some problems need your help. Please give pointers! sincere thanks!