Filter: C++  Pascal  C#  VB.NET  Java  Java ME  ActiveX  DLL 



InetTransport.BandwidthPolicy

InetTransport     See also    


Defines the method used to apply bandwidth limitations.

Declaration

[C++]
    void setBandwidthPolicy(IPCBandwidthPolicy Value);
    IPCBandwidthPolicy getBandwidthPolicy(void);

[Pascal]
    property BandwidthPolicy : TIPCBandwidthPolicy;

[VB6]
    Property IIPCXInetTransport4.BandwidthPolicy As IPCXBandwidthPolicy

[ActiveX]
    HRESULT _stdcall IIPCInetTransport4.BandwidthPolicy([in] IPCXBandwidthPolicy Value );
    HRESULT _stdcall IIPCInetTransport4.BandwidthPolicy([out, retval] IPCXBandwidthPolicy * Value);

[C#]
    IPCBandwidthPolicy BandwidthPolicy;

[VB.NET]
    Public Property BandwidthPolicy As IPCBandwidthPolicy

[Java]
    public void setBandwidthPolicy(byte value);
    public byte getBandwidthPolicy();

[Java ME]
    public void setBandwidthPolicy(byte value);
    public byte getBandwidthPolicy();

[DLL]
    void __stdcall IPCInetTransportSetBandwidthPolicy(HIPCInetTransport h, unsigned long value);
    unsigned long __stdcall IPCInetTransportGetBandwidthPolicy(HIPCInetTransport h);

Values:

IPCBandwidthPolicy
    bpFlexible = 0;
    bpStrict = 1;

Parameters

  • h - handle to the object that was returned by Create method

Description

    This property defines how the bandwidth limitations are applied.
    In bpFlexible mode the transport determines data amount allowed to be sent as LimitPerSecond*NumberOfSecondsElapsed-TotalTransferred.
    In bpStrict mode the data amount is calculated on per-second bases as LimitPerSecond-TransferredThisSecond.

    In Flexible mode, if the data is not transferred, "the rest" of the bandwidth is reserved for future use and the next message will be sent faster. In Strict mode the maximum number of bytes that can be sent per second can't be more than LimitPerSecond.
    Generally, bpStrict is better strategy, when the number of messages is unknown and/or when they are small. On the other hand, it leads to slower transfers.

    Default value is bpStrict.

See also:     Active