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


InetTransport     See also    

Defines the method used to apply bandwidth limitations.


    void setBandwidthPolicy(IPCBandwidthPolicy Value);
    IPCBandwidthPolicy getBandwidthPolicy(void);

    property BandwidthPolicy : TIPCBandwidthPolicy;

    Property IIPCXInetTransport4.BandwidthPolicy As IPCXBandwidthPolicy

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

    IPCBandwidthPolicy BandwidthPolicy;

    Public Property BandwidthPolicy As IPCBandwidthPolicy

    public void setBandwidthPolicy(byte value);
    public byte getBandwidthPolicy();

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

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


    bpFlexible = 0;
    bpStrict = 1;


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


    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