-
Notifications
You must be signed in to change notification settings - Fork 3
Gem.Network
George Michaelides edited this page Feb 22, 2015
·
19 revisions
Gem.Network is a standalone library for creating client - server applications in .NET.
Using the fluent API or annotations you can create server - client events with ease.
enum MessageType
{
Hail,
ConnectionApproval,
NewClient,
Disconnect,
Discovery,
Data
}
The client is the base class for sending or handling network incoming / outgoing messages.
You can follow the client setup guide to set up a network event.
var server = new Server { Name = "MyServer",
Port = 14242,
DebugListener = Console.Write };
server.RunAsync();
Thread.Sleep(1000);
server.Stop();