connect :: SSLContextSSL context. See the
HsOpenSSLdocumentation for information on creating this.-> HostNamehostname to connect to
-> PortNumberport number to connect to
-> IO (InputStream ByteString, OutputStream ByteString, SSL)
Convenience function for initiating an SSL connection to the given
(HostName, PortNumber) combination.
Note that sending an end-of-file to the returned OutputStream will not close the underlying SSL connection; to do that, call:
SSL.shutdown ssl SSL.Unidirectional
maybe (return ()) close $ SSL.sslSocket ssl
on the returned SSL object.