Module socket

Module socket 

Source
Expand description

Low-level socket handling code. Socket handling is platform specific code.

The submodules of this module represent the different implementations for each supported platform. Depending on the target, the respective platform is read and loaded into this scope.

Enums§

ConnectionSettings
Describe how a client should connect to the daemon.

Traits§

BlockingListener
A new trait, which can be used to represent Unix- and TcpListeners.
This is necessary to easily write generic functions where both types can be used.
BlockingStream

Functions§

get_client_stream
Get a new stream for the client.
This can either be a UnixStream or a Tls encrypted TCPStream, depending on the parameters.
get_tls_connector
Initialize our client TlsConnector. \

Type Aliases§

GenericBlockingListener
Convenience type, so we don’t have type write Box<dyn Listener> all the time.
GenericBlockingStream
Convenience type, so we don’t have type write Box<dyn Stream> all the time.
This also prevents name collisions, since Stream is imported in many preludes.