ClassesClassesClassesClasses | | | | Operators

set_socket_timeoutset_socket_timeoutSetSocketTimeoutset_socket_timeoutSetSocketTimeoutSetSocketTimeout (Operator)

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.

Signature

set_socket_timeout( : : Socket, Timeout : )

Herror set_socket_timeout(const Hlong Socket, double Timeout)

Herror T_set_socket_timeout(const Htuple Socket, const Htuple Timeout)

Herror set_socket_timeout(const HTuple& Socket, const HTuple& Timeout)

void HSocket::SetSocketTimeout(const HTuple& Timeout) const

void SetSocketTimeout(const HTuple& Socket, const HTuple& Timeout)

void HSocket::SetSocketTimeout(const HTuple& Timeout) const

void HSocket::SetSocketTimeout(double Timeout) const

void HOperatorSetX.SetSocketTimeout(
[in] VARIANT Socket, [in] VARIANT Timeout)

void HSocketX.SetSocketTimeout([in] VARIANT Timeout)

static void HOperatorSet.SetSocketTimeout(HTuple socket, HTuple timeout)

void HSocket.SetSocketTimeout(HTuple timeout)

void HSocket.SetSocketTimeout(double timeout)

Description

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.

Parallelization

Parameters

SocketSocketSocketSocketSocketsocket (input_control)  socket_id HSocket, HTupleHTupleHSocket, HTupleHSocketX, VARIANTHtuple (integer) (IntPtr) (Hlong) (Hlong) (Hlong) (Hlong)

Socket number.

TimeoutTimeoutTimeoutTimeoutTimeouttimeout (input_control)  number HTupleHTupleHTupleVARIANTHtuple (real / integer / string) (double / int / long / string) (double / Hlong / HString) (double / Hlong / char*) (double / Hlong / BSTR) (double / Hlong / char*)

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

Module

Foundation


ClassesClassesClassesClasses | | | | Operators