Exemple #1
0
 public Transport Open()
 {
     if (this.ReadyState == Transport.ReadyStateEnum.CLOSED)
     {
         this.ReadyState = Transport.ReadyStateEnum.OPENING;
         this.DoOpen();
     }
     return(this);
 }
Exemple #2
0
 protected void OnClose()
 {
     LogManager.GetLogger(Global.CallerName("", 0, "")).Info("Transport.OnClose()");
     this.ReadyState = Transport.ReadyStateEnum.CLOSED;
     this.Emit(Transport.EVENT_CLOSE);
 }
Exemple #3
0
 protected void OnOpen()
 {
     this.ReadyState = Transport.ReadyStateEnum.OPEN;
     this.Writable   = true;
     this.Emit(Transport.EVENT_OPEN);
 }