public CoCRemoteClient(CoCServer server, Socket connection) { Connection = connection; Server = server; NetworkManager = new NetworkManagerAsync(connection, HandlePacketReceived, HandleReceicedPacketFailed); PacketHandlers = new Dictionary<ushort, PacketHandler>(); }
public CoCRemoteClient(CoCServer server, Socket connection) { Connection = connection; Server = server; NetworkManager = new NetworkManagerAsync(connection, HandlePacketReceived, HandleReceicedPacketFailed); PacketHandlers = new Dictionary <ushort, PacketHandler>(); }
public CoCRemoteClient(CoCServer server, Socket connection, NetworkManagerAsyncSettings settings) { _server = server; Connection = connection; Avatar = new Avatar(); NetworkManager = new NetworkManagerAsync(connection, settings); NetworkManager.MessageReceived += OnMessageReceived; }
public static void Main(string[] args) { Console.Title = "CoC# Server"; Server = new CoCServer(); Server.Start(new IPEndPoint(IPAddress.Any, 9339)); Console.WriteLine("CoC# Server listening on port *:9339"); Thread.Sleep(-1); }
public CoCRemoteClient(CoCServer server, Socket connection) { Connection = connection; Server = server; NetworkManager = new NetworkManagerAsync(connection); NetworkManager.PacketReceived += OnPacketReceived; PacketHandlers = new Dictionary <ushort, PacketHandler>(); Avatar = new Avatar(); Home = new Village(); }
public CoCRemoteClient(CoCServer server, Socket connection) { Connection = connection; Server = server; NetworkManager = new NetworkManagerAsync(connection); NetworkManager.PacketReceived += OnPacketReceived; PacketHandlers = new Dictionary<ushort, PacketHandler>(); Avatar = new Avatar(); Home = new Village(); }
public static void m(string[] args) { Console.Title = "CoC# - Server"; var stopwatch = new Stopwatch(); stopwatch.Start(); Server = new CoCServer(); Server.Start(); stopwatch.Stop(); Console.WriteLine("Done({0}ms)! Listening on *:9339", stopwatch.Elapsed.TotalMilliseconds); Thread.Sleep(Timeout.Infinite); }
public AvatarManager(CoCServer server) { NextPlayerID = 1; Server = server; Avatars = new List<Avatar>(); }
public AvatarManager(CoCServer server) { NextPlayerID = 1; Server = server; Avatars = new List <Avatar>(); }