Skip to content

Instantly share code, notes, and snippets.

@dcomartin
Created January 25, 2019 01:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dcomartin/41a0fe190413cee305cca0fdac669d90 to your computer and use it in GitHub Desktop.
Save dcomartin/41a0fe190413cee305cca0fdac669d90 to your computer and use it in GitHub Desktop.
var server = new ServerBuilder()
.UseTcp(1000)
.UseUdp(5000)
.RegisterPacketHandlerModule<DefaultPacketHandlerModule>()
.RegisterPacketHandlerModule<ExamplePacketHandlerModule>()
.UseZeroFormatter()
.ConfigureLogging(loggingBuilder =>
{
loggingBuilder.AddConsole();
loggingBuilder.SetMinimumLevel(
LogLevel.Debug);
})
.Build();
server.Start();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment