Implicitly proxies calls to the current Socket. This successfully proxies to Socket.receive.
Returns the SSL error message for the passed SSL error code.
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.
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.
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.
Whether or not this Connection should use SSL when sending and receiving.
Functions and state needed to maintain a connection.
This is simply to decrease the amount of globals and to create some convenience functions.