Name
set_socket_timeoutset_socket_timeoutSetSocketTimeoutset_socket_timeoutSetSocketTimeoutSetSocketTimeout — Set the timeout of a socket.
Warning
set_socket_timeoutset_socket_timeoutSetSocketTimeoutset_socket_timeoutSetSocketTimeoutSetSocketTimeout is obsolete and is only provided for reasons of
backward compatibility. New applications should use the operator
set_socket_paramset_socket_paramSetSocketParamset_socket_paramSetSocketParamSetSocketParam with the parameter 'timeout'"timeout""timeout""timeout""timeout""timeout" instead.
Herror set_socket_timeout(const Hlong Socket, double Timeout)
Herror T_set_socket_timeout(const Htuple Socket, const Htuple Timeout)
set_socket_timeoutset_socket_timeoutSetSocketTimeoutset_socket_timeoutSetSocketTimeoutSetSocketTimeout sets the timeout for the socket connection
that is passed in SocketSocketSocketSocketSocketsocket. The TimeoutTimeoutTimeoutTimeoutTimeouttimeout is used for
reading and writing of data via the socket as well as for calls to
socket_accept_connectsocket_accept_connectSocketAcceptConnectsocket_accept_connectSocketAcceptConnectSocketAcceptConnect. If problems during the transmission
of the data cause a timeout, the underlying protocol cannot
synchronize itself with the data any longer. Therefore, in these
cases, the only possibility to put the system into a consistent
state is to close both sockets and to open them anew. It should be
noted that sometimes while reading data no error message will be
returned if the sending socket is closed while the receiving socket
is waiting for data. In these cases, empty data are returned
(either objects or tuples).
The timeout is given in seconds as a floating point number. It can
also be set to 'infinite'"infinite""infinite""infinite""infinite""infinite", causing the read calls to wait
indefinitely.
- Multithreading type: reentrant (runs in parallel with non-exclusive operators).
- Multithreading scope: global (may be called from any thread).
- Processed without parallelization.
Socket timeout.
Default value:
'infinite'
"infinite"
"infinite"
"infinite"
"infinite"
"infinite"
Suggested values: 'infinite'"infinite""infinite""infinite""infinite""infinite", 0, 1, 2, 3, 4, 5, 10, 30, 60
open_socket_acceptopen_socket_acceptOpenSocketAcceptopen_socket_acceptOpenSocketAcceptOpenSocketAccept,
open_socket_connectopen_socket_connectOpenSocketConnectopen_socket_connectOpenSocketConnectOpenSocketConnect,
socket_accept_connectsocket_accept_connectSocketAcceptConnectsocket_accept_connectSocketAcceptConnectSocketAcceptConnect
socket_accept_connectsocket_accept_connectSocketAcceptConnectsocket_accept_connectSocketAcceptConnectSocketAcceptConnect,
receive_imagereceive_imageReceiveImagereceive_imageReceiveImageReceiveImage,
receive_regionreceive_regionReceiveRegionreceive_regionReceiveRegionReceiveRegion,
receive_xldreceive_xldReceiveXldreceive_xldReceiveXldReceiveXld
get_socket_timeoutget_socket_timeoutGetSocketTimeoutget_socket_timeoutGetSocketTimeoutGetSocketTimeout
Foundation