コード例 #1
0
 public CoCRemoteClient(CoCServer server, Socket connection)
 {
     Connection = connection;
     Server = server;
     NetworkManager = new NetworkManagerAsync(connection, HandlePacketReceived, HandleReceicedPacketFailed);
     PacketHandlers = new Dictionary<ushort, PacketHandler>();
 }
コード例 #2
0
 public CoCRemoteClient(CoCServer server, Socket connection)
 {
     Connection     = connection;
     Server         = server;
     NetworkManager = new NetworkManagerAsync(connection, HandlePacketReceived, HandleReceicedPacketFailed);
     PacketHandlers = new Dictionary <ushort, PacketHandler>();
 }
コード例 #3
0
ファイル: CoCRemoteClient.cs プロジェクト: circa94/CoCSharp
 public CoCRemoteClient(CoCServer server, Socket connection, NetworkManagerAsyncSettings settings)
 {
     _server = server;
     Connection = connection;
     Avatar = new Avatar();
     NetworkManager = new NetworkManagerAsync(connection, settings);
     NetworkManager.MessageReceived += OnMessageReceived;
 }
コード例 #4
0
        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);
        }
コード例 #5
0
ファイル: Program.cs プロジェクト: maithanhtan/CoCSharp
        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);
        }
コード例 #6
0
 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();
 }
コード例 #7
0
 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();
 }
コード例 #8
0
ファイル: Program.cs プロジェクト: circa94/CoCSharp
        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);
        }
コード例 #9
0
ファイル: AvatarManager.cs プロジェクト: Baghe/CoCSharp
 public AvatarManager(CoCServer server)
 {
     NextPlayerID = 1;
     Server = server;
     Avatars = new List<Avatar>();
 }
コード例 #10
0
ファイル: AvatarManager.cs プロジェクト: xsplicersx/CoCSharp
 public AvatarManager(CoCServer server)
 {
     NextPlayerID = 1;
     Server       = server;
     Avatars      = new List <Avatar>();
 }