public void Set(SetPacketQueueSizeOptions other) { if (other != null) { m_ApiVersion = P2PInterface.SetpacketqueuesizeApiLatest; IncomingPacketQueueMaxSizeBytes = other.IncomingPacketQueueMaxSizeBytes; OutgoingPacketQueueMaxSizeBytes = other.OutgoingPacketQueueMaxSizeBytes; } }
/// <summary> /// Sets the maximum packet queue sizes that packets waiting to be sent or received can use. If the packet queue /// size is made smaller than the current queue size while there are packets in the queue that would push this /// packet size over, existing packets are kept but new packets may not be added to the full queue until enough /// packets are sent or received. /// </summary> /// <param name="options">Information about packet queue size</param> /// <returns> /// <see cref="Result" />::<see cref="Result.Success" /> - if the input options were valid /// <see cref="Result" />::<see cref="Result.InvalidParameters" /> - if the input was invalid in some way /// </returns> public Result SetPacketQueueSize(SetPacketQueueSizeOptions options) { System.IntPtr optionsAddress = new System.IntPtr(); Helper.TryMarshalSet <SetPacketQueueSizeOptionsInternal, SetPacketQueueSizeOptions>(ref optionsAddress, options); var funcResult = EOS_P2P_SetPacketQueueSize(InnerHandle, optionsAddress); Helper.TryMarshalDispose(ref optionsAddress); return(funcResult); }