Module ipc

Module ipc 

Source
Expand description

this module contains all the shared IPC logic agnostic to servers and clients. in particular, it contains the Message type and its components and the Connection type, which abstracts away sopht’s messaging protocol

Structs§

Connection
structure containing the state of a connection to the sopht socket

Functions§

create_client_connection
creates a UnixStream and attempts to build a Connection out of it. if the stream cannot be created, this function returns SocketError
socket_file_path
obtains the file path of the unix socket file on the local machine whether it exists or not. this function can fail if the current user has no HOME directory (NoHomeDir)