GetFirstSequence() private method

If we have outgoing notifications, returns the sequence of the first.
private GetFirstSequence ( ) : ushort
return ushort
Beispiel #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));
     }
 }
Beispiel #2
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);
         }
   }