GetFirstSequence() private method

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