INET_Internet_SetOption

<< Click to Display Table of Contents >>

Navigation:  ThinBASIC Modules > INet >

INET_Internet_SetOption

 

Description

 

Sets an Internet option. on the specified handle.

 

Syntax

 

sRetValue = INET_Internet_SetOption(hInternet, lOption, sValue)

 

Returns

 

Function return a string that in many cases will be a valid number.

If function fails, it returns an empty string

 

Parameters

 

Name

Type

Optional

Meaning

hInternet

Number

No

The handle to the current Internet session. The handle must have been returned by a previous call to INET_Internet_Open.

lOption

Number

No

Internet option to be queried.

Supported options:

%INTERNET_OPTION_CONNECT_TIMEOUT

%INTERNET_OPTION_SEND_TIMEOUT

%INTERNET_OPTION_CONTROL_SEND_TIMEOUT

%INTERNET_OPTION_RECEIVE_TIMEOUT

%INTERNET_OPTION_CONTROL_RECEIVE_TIMEOUT

%INTERNET_OPTION_DATA_SEND_TIMEOUT

%INTERNET_OPTION_DATA_RECEIVE_TIMEOUT

 

sValue

String

No

Option setting.
This parameter is a string, in many cases passed value are expected as binary numbers: thinBasic will take care to transform string into the necessary type depending on the lOption selected.

 

Remarks

 

Restrictions

 

See also

 

Examples