Skip to content

arayeji/NetworkHandler

Repository files navigation

Simple Socket Client And Server Usage:

Listening:

 NetworkHandler.UDPNetwork server = new NetworkHandler.UDPNetwork(new System.Net.IPEndPoint(IPAddress.Any, 1234), NetworkHandler.NetworkBase.Modes.Server, System.Net.Sockets.AddressFamily.InterNetwork);
 server.OnPacketReceived += Server_OnPacketReceived;
 server.Start();

Receiving Data:

private static void Server_OnPacketReceived(object sender, NetworkHandler.NetworkEventHandler e)
{
  Console.WriteLine(Encoding.ASCII.GetString(e.Packet));
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages