CLIENT_SOCKET_SET_TIMEOUT
|
Syntax: |
CLIENT_SOCKET_SET_TIMEOUT(<Handle>,<Milliseconds>)
|
||||
|
|
|
||||
|
Meaning: |
This function specifies how many <Milliseconds>
the function CLIENT_SOCKET_READ$ waits
for input characters. After the waiting time has expired the
function CLIENT_SOCKET_READ$
is closed and ERRORTEXT$ contains the error report. If <Milliseconds> <= 0, the program waits endlessly. <Handle> is the identification number
returned by the function CLIENT_SOCKET. CLIENT_SOCKET_SET_TIMEOUT returns he value 0
if no error occurred, otherwise –1. In the case of an error the variable ERRORTEXT$ contains the error report. |
||||
|
Parameter: |
|
||||
|
Sample: |
H% = CLIENT_SOCKET_SET_TIMEOUT(HANDLE%,1000) IF H% <> 0 THEN ERRORMES =
"Error " + ERRORTEXT$ ENDIF |
||||
|
See also: |
|