示例#1
0
 public override void Shutdown(TransportShutdownOption how)
 {
     if (how == TransportShutdownOption.Read)
     {
         this.socket.Shutdown(SocketShutdown.Receive);
     }
     else if (how == TransportShutdownOption.Write)
     {
         this.socket.Shutdown(SocketShutdown.Send);
     }
     else if (how == TransportShutdownOption.ReadWrite)
     {
         this.socket.Shutdown(SocketShutdown.Both);
     }
 }
示例#2
0
 public override void Shutdown(TransportShutdownOption how)
 {
     if (how == TransportShutdownOption.Read)
     {
         this.socket.Shutdown(SocketShutdown.Receive);
     }
     else if (how == TransportShutdownOption.Write)
     {
         this.socket.Shutdown(SocketShutdown.Send);
     }
     else if (how == TransportShutdownOption.ReadWrite)
     {
         this.socket.Shutdown(SocketShutdown.Both);
     }
 }
示例#3
0
 public abstract void Shutdown(TransportShutdownOption how);
示例#4
0
 public override void Shutdown(TransportShutdownOption how)
 {
     this.innerTransport.Shutdown(how);
 }
示例#5
0
 public override void Shutdown(TransportShutdownOption how)
 {
     this.innerTransport.Shutdown(how);
 }
示例#6
0
 public abstract void Shutdown(TransportShutdownOption how);