Module portus::ipc

source ·
Expand description

A library wrapping various IPC mechanisms with a datagram-oriented messaging layer. This is how CCP communicates with the datapath.

Modules

  • Thread-channel implementation
  • Character device implementation
  • Netlink socket implementation
  • Unix domain socket implementation

Structs

  • Backend will yield incoming IPC messages forever via next(). It owns the socket; BackendSender holds weak references. The atomic bool is a way to stop iterating.
  • Backend builder contains the objects needed to build a new backend.
  • A send-only handle to the underlying IPC socket.
  • Marker type specifying that the IPC socket should make blocking calls to the underlying socket
  • Marker type specifying that the IPC socket should make nonblocking calls to the underlying socket

Traits

  • IPC mechanisms must implement this trait.