Establish a connection with a remote host.
A boolean value which specifies if the connection has been established. If the client is in blocking mode, a return value of true indicates that the connection has completed and the application may send and receive data from the remote host. If the client is in non-blocking mode, a return value of true indicates that the client has successfully created a socket and the connection is in progress.
When a non-blocking connection has completed, the OnConnect event will be fired. If this method returns false, the connection could not be established and the application should check the value of the LastError property to determine the cause of the failure.
This method establishes a connection using assigned property values.
The value of the Timeout property will be used to specify the timeout period.
The value of the Options property will be used to specify the default options for the connection.
The value of the ProtocolVersion property will be used to specify the protocol version.
HttpClient Class | SocketTools Namespace | HttpClient.Connect Overload List