Module socket

Source
Expand description

This module provides code that glues all of the other modules together and allows message send and receive operations.

§Important methods

§Features

The async feature exposed by cargo allows the socket to use Rust’s tokio for async IO.

§Additional methods

There are methods for blocking and non-blocking, resolving generic netlink multicast group IDs, and other convenience functions so see if your use case is supported. If it isn’t, please open a Github issue and submit a feature request.

§Design decisions

The buffer allocated in the NlSocketHandle structure should be allocated on the heap. This is intentional as a buffer that large could be a problem on the stack.

Structs§

NlSocket
Low level access to a netlink socket.
NlSocketHandle
Higher level handle for socket operations.