Discuss this help topic in MsgConnect Forum

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


InetTransport     See also    

Defines the method used to apply bandwidth limitations.


    void setBandwidthPolicy(MCBandwidthPolicy Value);
    MCBandwidthPolicy getBandwidthPolicy(void);

    property BandwidthPolicy : TMCBandwidthPolicy;

    Property IMCXInetTransport4.BandwidthPolicy As MCXBandwidthPolicy

    HRESULT _stdcall IMCInetTransport4.BandwidthPolicy([in] MCXBandwidthPolicy Value );
    HRESULT _stdcall IMCInetTransport4.BandwidthPolicy([out, retval] MCXBandwidthPolicy * Value);

    MCBandwidthPolicy BandwidthPolicy;

    Public Property BandwidthPolicy As MCBandwidthPolicy

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

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

    void __stdcall MCInetTransportSetBandwidthPolicy(HMCInetTransport h, unsigned long value);
    unsigned long __stdcall MCInetTransportGetBandwidthPolicy(HMCInetTransport 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

Discuss this help topic in MsgConnect Forum