Crate machnet

source ·

Structs§

Functions§

  • Creates a new channel to the Machnet controller and binds to it. A channel is a logical entity between an application and the Machnet service.
  • Establishes a Machnet connection using the provided chanenel.
  • Initializes the Machnet library for interacting with the Machnet sidecar. This function sets up the necessary components to allow communication and control over the Machnet sidecar. It should be called before making any other calls to the Machnet library.
  • Listens for incoming messages on a specified local IP address and port.
  • Receives a pending message from a remote peer over the network. This function attempts to receive data from a specified Machnet channel. It uses the provided Machnet channel (channel) and fills the given buffer (buf) with the received data. The flow parameter will be populated with the flow information of the sender.
  • Enqueues a message for transmission to a remote peer over the network.