connect_with_response_usec


Description:

[ Version ( since = "1.18" ) ]
public Result connect_with_response_usec (int64 timeout, Message response)

Attempt to connect to the url of this made with connection_create.

If timeout is 0 this function can block forever. If timeout contains a valid timeout, this function will return ETIMEOUT after the timeout expired. If this is set to tunneled, response will contain a response to the tunneling request messages.

This function can be cancelled with flush.

Parameters:

this

a Connection

timeout

a timeout in microseconds

response

a Message

Returns:

OK when a connection could be made.