Ejemplo n.º 1
0
 /// <summary>
 /// Send response
 /// </summary>
 /// <param name="size"></param>
 protected void SendResponse(int size)
 {
     try
     {
         messageManager.Send(socket, responseObject, 0, size);
     }
     catch
     {
         responseObject.Dispose();
     }
 }
Ejemplo n.º 2
0
 void HyperConnection_ConnectionStatusChanged(object sender, ConnectionStatusEventArgs e)
 {
     if (e.Status == ConnectionStatus.Disconnected)
     {
         _tail = null;
         if (_tempBuffer.Object != null)
         {
             _tempBuffer.Dispose();
             _tempBuffer = new ReusableObject <byte[]>();
         }
     }
 }