Brunet.Security.Dtls.DtlsAssociation.HandleWouldBlock C# (CSharp) Метод

HandleWouldBlock() защищенный Метод

Blocking may occur for two reasons, no data available or the handshake isn't complete. If the handshake isn't complete, the timer will be set to >= 0, at 0, we need to call handshake to continue, if it is greater than 0, we need to schedule a timer to call handshake later.
protected HandleWouldBlock ( ) : void
Результат void
    protected void HandleWouldBlock()
    {
      if(Closed) {
        return;
      }
      long to = _ssl.GetTimeout();
      if(to == 0) {
        _ssl.TimerExpired();
      }
      if(_read.BytesPending > 0) {
        HandleData(null, Sender, null);
      }
      if(_write.BytesPending > 0) {
        Send(null);
      }

#if !BRUNET_SIMULATOR
      if(to > 0 && Interlocked.Exchange(ref _fe_lock, 1) == 0) {
        _fe = FuzzyTimer.Instance.DoAfter(HandleWouldBlock, (int) to, 250);
      }
#endif
    }

Same methods

DtlsAssociation::HandleWouldBlock ( System.DateTime now ) : void