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


InetTransport     See also    

Specifies the maximum number of bytes that can be sent in one second.


    void setOutgoingSpeedLimit(unsigned long Value);
    unsigned long getOutgoingSpeedLimit(void);

    property OutgoingSpeedLimit : longint;

    Property IIPCXInetTransport3.OutgoingSpeedLimit As Long

    HRESULT _stdcall IIPCInetTransport3.OutgoingSpeedLimit([in] long Value );
    HRESULT _stdcall IIPCInetTransport3.OutgoingSpeedLimit([out, retval] long * Value );

    public int OutgoingSpeedLimit;

    Public Property OutgoingSpeedLimit As Integer

    public void setOutgoingSpeedLimit(long value);
    public long getOutgoingSpeedLimit();

[Java ME]
    public void setOutgoingSpeedLimit(long value);
    public long getOutgoingSpeedLimit();

    void __stdcall IPCInetTransportSetOutgoingSpeedLimit(HIPCInetTransport h, unsigned long value);
    unsigned long __stdcall IPCInetTransportGetOutgoingSpeedLimit(HIPCInetTransport h);


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


    This property specifies the maximum number of bytes that can be sent in one second. 0 means "no limit".
Due to the nature of CBFS IPC this property lets you define "average" bandwidth load, but not maximum load per second.

Outgoing limit is 1000 bytes per second. Connection has been established, but remains idle for 100 seconds. After that the sender begins to send 1000 messages, each of them being 500 bytes long. Each of messages is smaller, than the number of bytes per second, so the total number of bytes received will exceed 1000 bytes per second. extra bytes are sent because at the beginning the connection was idle and the extra bandwidth is "borrowed" from first 100 seconds. This way, you will get 100 seconds of idle time, then some seconds of high bandwidth load (until the "reserve" of first 100 seconds is used), then limited load of 500 bytes per second.

To get around this behaviour use small InactivityTime intervals, i.e. don't keep inactive connections for a long time.

See also:     InactivityTime     IncomingSpeedLimit