private int HandleThrottleConfigure(Peer peer, Protocol.ThrottleConfigure command) { peer.PacketThrottleInterval = command.PacketThrottleInterval; peer.PacketThrottleAcceleration = command.PacketThrottleAcceleration; peer.PacketThrottleDeceleration = command.PacketThrottleDeceleration; return(0); }
public void ThrottleConfigure(uint interval, uint acceleration, uint deceleration) { PacketThrottleInterval = interval; PacketThrottleAcceleration = acceleration; PacketThrottleDeceleration = deceleration; var command = new Protocol.ThrottleConfigure { ChannelID = 0xFF, Flags = ProtocolFlag.ACKNOWLEDGE, PacketThrottleInterval = interval, PacketThrottleAcceleration = acceleration, PacketThrottleDeceleration = deceleration, }; QueueOutgoingCommand(command, null, 0, 0); }