MISetSessionTimeout() function - MapBasic - 2023

MapInfo MapBasic Reference

Product type
Software
Portfolio
Locate
Product family
MapInfo
Product
MapInfo > MapBasic
Version
2023
Language
English
Product name
MapBasic
Title
MapInfo MapBasic Reference
First publish date
1985
Last updated
2023-09-12
Published on
2023-09-12T16:32:32.686312

Purpose

Sets the time-out options for the Internet session.

Syntax

MISetSessionTimeout( ByVal hSession As CInternetSession, 
	ByVal Connect As Integer, ByVal Send As Integer, 
	ByVal Receive As Integer )  As SmallInt

hSession is the CInternetSession object handle.

Connect is an integer that contains time-out value in millisecond to use for the Internet connection request.

Send is an integer that contains the time-out value in milliseconds to use for sending a request.

Receive is an integer that contains the time-out value in milliseconds to use for receiving a request.

Return Value

Nonzero if successful; otherwise 0. To determine the cause of the failure, call the MIGetErrorMessage() function.

Description

Use this function to set time-out values for the Internet session. The default value of each setting (Connect, Send, Receive) is 0. For detailed information, refer to the Microsoft MSDN library.