Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
virtual P6R::P6ERR P6R::p6ITcpSocket::connect ( P6NETADDR *  pRemoteAddr,
P6INTERVAL  timeout 
)
pure virtual

Attempt to establish a connection to the remote endpoint.

If establishing a secure connection, the peer certitifcate will be verified and the hostname (previsouly passed into the p6ISecureSocket interface) will be verified against the certificate befre returning.

Parameters
pRemoteAddr[ in ] A pointer to a P6NETADDR that contains the address information for the remote endpoint to attemp to connect to.
timeout[ in ] A P6R::P6INTERVAL specifying the amount of time connect should what for a connection before returning. This can be P6WAITINFINITE which will cause the method wait for a connection forever, or P6WAITNONE which will cause the method to check for a connection and return immediately.
           Secure connections require multiple I/O operations in order to complete
           the secure handshake. This timeout is applied to EACH I/O operation. It
           does not limit the time of the secure connect operation as a whole.
Returns