Returns the SSL error message for the passed SSL error code.
Proxies calls to socket.receive.
Accessor; returns the current receive timeout.
Mutator; sets the receive timeout socket option to the passed duration.
(Re-)initialises the sockets and sets the IPv4 one as the active one.
Resets the SSL context and resources of this Connection.
Accessor; returns the current send timeout.
Mutator; sets the send timeout socket option to the passed duration.
Sends a line to the server.
Sets up sockets with the SocketOptions needed. These include timeouts and buffer sizes.
Sets the SocketOption.RCVTIMEO of the *current* Socket socket to the specified duration.
Initialises new Sockets and sets their options.
Sets up the SSL context for this connection.
Shuts down and closes the internal Sockets.
Frees SSL context and resources.
Private cached received timeout setting.
Private cached send timeout setting.
Path to a (.pem) SSL certificate file.
Whether we are connected or not.
IPs already resolved using resolveFiber.
Path to a private SSL key file.
Pointer to the socket of the AddressFamily we want to connect with.
Real IPv4 and IPv6 sockets to connect through.
Whether or not this Connection should use SSL when sending and receiving.
Private SSL context.
OpenSSL requests.ssl_adapter.SSL instance, for use with SSL connections.
Functions and state needed to maintain a connection.
This is simply to decrease the amount of globals and to create some convenience functions.