Expand description
IPC helpers with automatic detection of OS and local vs remote target.
This library exposes behavior (detection functions and result types) and keeps implementation details in separate modules.
Structs§
- Socket
- Shared socket returned by
socket_init. Usesend_message()to send messages andmessage_handler()to handle incoming messages.
Enums§
- Detection
Error - Error when resolving endpoint from environment (e.g.
osortargetunset/invalid). - OsDetection
Error - Error when detecting OS from the
osenvironment variable. - OsKind
- Detected operating system from the environment.
- Socket
Error - Error from connecting or using a socket.
- Target
Detection Error - Error when detecting target from the
targetenvironment variable. - Target
Kind - Whether the process to communicate with is local or on a remote server.
Functions§
- socket_
init - Initializes a socket connection using a single endpoint string. No transport-specific knowledge required.