コード例 #1
0
 public void shutdown(Exception closeReason)
 {
     lock (locker)
     {
         this.closeReason = closeReason;
     }
     if (this.local != null)
     {
         manager.removeProtocolTransport(this);
     }
     else
     {
         ((ClientManagerImpl)manager).connectAbort(this);
     }
 }
コード例 #2
0
ファイル: net.cs プロジェクト: yuexiaodong/limax
 public void shutdown(bool eventually, Exception closeReason)
 {
     lock (locker)
     {
         this.closeReason = closeReason;
     }
     if (eventually)
     {
         manager.removeProtocolTransport(this);
     }
     else
     {
         ((ClientManagerImpl)manager).connectAbort(this);
     }
 }