Exemplo n.º 1
0
 /// <summary>
 ///		Desconecta del servidor
 /// </summary>
 internal void Disconnect()
 {
     if (ProtocolStream != null)
     {
         // Libera el stream de datos
         try
         {
             ProtocolStream.Dispose();
         }
         catch (System.Net.Sockets.SocketException) { }
         catch (System.IO.IOException) { }
         // Libera el objeto
         ProtocolStream = null;
     }
 }
Exemplo n.º 2
0
 /// <summary>
 /// Disposes the transport.
 /// </summary>
 internal void Disconnect()
 {
     if (ProtocolStream != null)
     {
         try
         {
             ProtocolStream.Dispose();
         }
         catch (SocketException)
         {
         }
         catch (IOException)
         {
         }
         ProtocolStream = null;
     }
 }