internal ushort GetFirstSequence()
{
if (this.outgoing.Count > 0)
return this.outgoing.Peek().Sequence;
return 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)); } }