/// <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)); } }
/// <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); } }