예제 #1
0
        public void SendNewIncomingConnection()
        {
            var packet = new NewIncomingConnection
            {
            };

            SendPackage(packet);
        }
예제 #2
0
        public void SendNewIncomingConnection()
        {
            var packet = NewIncomingConnection.CreateObject();

            packet.clientendpoint  = EndPoint;
            packet.systemAddresses = new IPEndPoint[20];
            for (int i = 0; i < 20; i++)
            {
                packet.systemAddresses[i] = new IPEndPoint(IPAddress.Any, 0);
            }

            SendPacket(packet);
        }
예제 #3
0
        public void SendNewIncomingConnection()
        {
            Random rand   = new Random();
            var    packet = new NewIncomingConnection
            {
                doSecurity = 163,
                session    = rand.Next(),
                session2   = rand.Next(),
                cookie     = rand.Next(),
                port       = (short)_clientEndpoint.Port
            };

            SendPackage(packet);
        }
예제 #4
0
 protected virtual void HandleNewIncomingConnection(NewIncomingConnection message)
 {
     State = ConnectionState.Connected;
     Log.DebugFormat("New incoming connection from {0} {1}", EndPoint.Address, EndPoint.Port);
 }
예제 #5
0
        protected virtual void HandleNewIncomingConnection(NewIncomingConnection message)
        {
            Log.Debug($"New incoming connection from {EndPoint.Address} {EndPoint.Port}");

            State = ConnectionState.Connected;
        }
예제 #6
0
파일: Player.cs 프로젝트: MrGenga/MiNET
		protected virtual void HandleNewIncomingConnection(NewIncomingConnection message)
		{
			NetworkSession.State = ConnectionState.Connected;
			Log.DebugFormat("New incoming connection from {0} {1}", EndPoint.Address, message.port);
		}
예제 #7
0
        public void SendNewIncomingConnection()
        {
            Random rand = new Random();
            var packet = new NewIncomingConnection
            {
                doSecurity = 163,
                session = rand.Next(),
                session2 = rand.Next(),
                cookie = rand.Next(),
                port = (short) _clientEndpoint.Port
            };

            SendPackage(packet);
        }
예제 #8
0
        public void SendNewIncomingConnection()
        {
            var packet = new NewIncomingConnection
            {
            };

            SendPackage(packet);
        }
예제 #9
0
 private void HandleNewIncomingConnection(NewIncomingConnection message)
 {
     Log.InfoFormat("New incoming connection from {0} {1}", EndPoint.Address, message.port);
 }
예제 #10
0
        private void HandleConnectionRequestAccepted(ConnectionRequestAccepted packet)
        {
            var ackReq = new NewIncomingConnection();

            SendEncapsulated(ackReq, EncapsulatedReliability.ReliableOrdered);
        }
예제 #11
0
 private void HandleNewIncomingConnection(NewIncomingConnection message)
 {
     Log.InfoFormat("New incoming connection from {0} {1}", EndPoint.Address, message.port);
 }