BASS_CONFIG_NET_READTIMEOUT config option

The time to wait for a server to deliver more data for an internet stream.

BASS_SetConfig(
    BASS_CONFIG_NET_READTIMEOUT,
    DWORD timeout
);

Parameters

timeoutThe time to wait, in milliseconds... 0 = no timeout.

Remarks

When the timeout is hit, the connection with the server will be closed.

The default setting is 0, no timeout. Changes only affect subsequently created streams, not any that already exist.

The BASS_CONFIG_THREAD flag can be used to make the setting specific to the current thread. When that is non-zero, it will override the global setting in the current thread.

See also

BASS_GetConfig, BASS_SetConfig, BASS_StreamCreateURL, BASS_CONFIG_NET_TIMEOUT