Beispiel #1
0
        protected override void AcceptAsyncEvent_Completed(object sender, SocketAsyncEventArgs e)
        {
            Client = new ClientCore(e.AcceptSocket)
            {
                IsServer = false, IsGame = false
            };
            Server = new ClientCore("52.16.189.225", 5558)
            {
                IsServer = true, IsGame = false
            };

            base.AcceptAsyncEvent_Completed(sender, e);
        }
Beispiel #2
0
        protected override void AcceptAsyncEvent_Completed(object sender, SocketAsyncEventArgs e)
        {
            Server = new ClientCore("52.50.167.81", 5556)
            {
                IsServer = true, IsGame = true
            };
            Client = new ClientCore(e.AcceptSocket)
            {
                IsServer = false, IsGame = true
            };

            base.AcceptAsyncEvent_Completed(sender, e);
        }
Beispiel #3
0
 public void RemoveClient(ClientCore client)
 {
     Client = null;
 }