Esempio n. 1
0
        /// <summary>
        /// Process an incomming CallBack Response.
        /// </summary>
        /// <param name="packet">Incomming packet.</param>
        public void ProcessCallBackResponse(byte[] packet)
        {
            MemoryStream            buffer           = new MemoryStream(packet);
            CServerCallbackResponse CallbackResponse = new CServerCallbackResponse(buffer);

            buffer.Close();
            CClient Client;

            Client = CKernel.ClientsList.AddClient(CallbackResponse.IP, CallbackResponse.Port, 0, null, 0, null);
            //si el cliente ya existía tendremos su referencia
            if (Client != null)
            {
                Client.Connect();
            }
        }
Esempio n. 2
0
 /// <summary>
 /// Process an incomming CallBack Response.
 /// </summary>
 /// <param name="packet">Incomming packet.</param>
 public void ProcessCallBackResponse(byte[] packet)
 {
     MemoryStream buffer=new MemoryStream(packet);
     CServerCallbackResponse CallbackResponse=new CServerCallbackResponse(buffer);
     buffer.Close();
     CClient Client;
     Client=CKernel.ClientsList.AddClient(CallbackResponse.IP,CallbackResponse.Port,0,null,0,null);
     //si el cliente ya existía tendremos su referencia
     if (Client!=null) Client.Connect();
 }