Specifies timeouts for Silk Performer's replay engine. Timeouts can occur either if data cannot be sent to the server in a specified time interval, or if data cannot be received from the server. For both cases, the default setting is to report no timeout.
WebAPI.bdh
WebSetTimeout( in nFlag : number, in nTime : number ): boolean;
true if successful
false otherwise
Parameter | Description |
---|---|
nFlag |
Specifies which timeout value to set. Possible options are:
|
nTime | Timeout value in milliseconds |
dcltrans transaction TWebSetTimeout var hWeb: number; begin // report timeout when data cannot be received within 30 seconds WebSetTimeout(WEB_TIMEOUT_RECV, 30000); WebTcpipConnect(hWeb, "192.231.34.1", WEB_PORT_HTTP); WebTcpipSend(hWeb, "GET / HTTP/1.0\r\n" "User-Agent: CustomClient/1.0\r\n" "Accept: */*\r\n\r\n"); // timeout if less than 100 bytes are received WebTcpipRecvExact(hWeb, NULL, 100); WebTcpipShutdown(hWeb); end TWebSetTimeout;
AsyncOdb.bdf, Factory.bdf, AsyncFact.bdf