MiniUDP.NetPeer.GetFirstSequence C# (CSharp) Method

GetFirstSequence() private method

If we have outgoing notifications, returns the sequence of the first.
private GetFirstSequence ( ) : ushort
return ushort
        internal ushort GetFirstSequence()
        {
            if (this.outgoing.Count > 0)
            return this.outgoing.Peek().Sequence;
              return 0;
        }

Usage Example

Ejemplo n.º 1
0
 /// <summary>
 /// Sends a scheduled notification message.
 /// </summary>
 internal SocketError SendNotifications(
     NetPeer peer)
 {
     lock (this.sendLock)
     {
         int packedLength =
             NetEncoding.PackCarrier(
                 this.sendBuffer,
                 peer.NotificationAck,
                 peer.GetFirstSequence(),
                 peer.Outgoing);
         int length = packedLength;
         return(this.TrySend(peer.EndPoint, this.sendBuffer, length));
     }
 }
All Usage Examples Of MiniUDP.NetPeer::GetFirstSequence