Error getting tags :
error 404Error getting tags :
error 404 socketTimeout | revDocs | RunRev
Welcome Guest (Log in)
Product Edition
Version
socketTimeout
Basics
Expander triangle
Type
Message
Syntax

socketTimeout socketID

Introduced
1.0
Environment
Desktop, Web and Server
Platform Support
MacOS,Mac OS X,Windows,Linux
Security
None required
Summary
Sent when an open socket, read from socket or write to socket command halts for the time specified by the socketTimeoutInterval property.
Examples

on socketTimeout theID
answer error "The connnection is not responding." \
with "Keep Trying" or "Cancel"
if it is "Cancel" then close socket theID
end if

Additional Comments
Expander triangle

Handle the socketTimeout message to take action when a socket communication has not completed within the time set by the socketTimeoutInterval.

Parameters:

The socketID is the identifier (set when you opened the socket) of the socket which had an error.

The socket identifier starts with the IP address of the host the socket is connected to, and may optionally include a port number (separated from the IP address by a colon). If there is more than one socket connected to that host and port, you can specify which socket by appending the connection name or number that was assigned when the socket was opened, separated from the port number by a vertical bar (|).

Comments:

The socketTimeout message is sent to the object that attempted to read from or write to the socket.

User Comments
Expander triangle
User thumbnail
Phil Davis
StarStarStarStarStar
Feb 25, 2009
Apparently the

socketTimeout

message is not sent when a

load

command exceeds the

socketTimeoutInterval

.
User thumbnail
jwkuehne@astro.as.utexas.edu
StarStarStarStarStar
Mar 1, 2010
Be aware that when using "read from socket X with message Y" that a sockettimeout on X, even if handled, does not terminate the read. If a character arrives after the sockettimeoutinterval occurs and the sockettimeout message is handled, message Y will still be sent and the character will be waiting.