Struct NetworkConfig
Defined in File Netio3Backend.hpp
Struct Documentation
-
struct NetworkConfig
Configuration for the network backend.
Contains network mode and thread safety model. Also contains all callbacks:
on_data_cb: When data is received. The data is passed as a span of const uint8_t
on_connection_established_cb: When a connection is established. Provides the address of the endpoint
on_connection_closed_cb: When a connection is closed. Provides the address of the endpoint and (for zero-copy sends) the keys of the pending send operations (otherwise possibly empty)
on_connection_refused_cb: When a connection is refused. Provides the address of the endpoint
on_send_completed_cb: When a send operation is completed. Provides the address of the endpoint and the key of the send operation
Public Members
-
NetworkMode mode = {NetworkMode::RDMA}
-
ThreadSafetyModel thread_safety = {ThreadSafetyModel::SAFE}
-
OnConnectionEstablishedCb on_connection_established_cb = {nullptr}
-
OnConnectionClosedKeysCb on_connection_closed_cb = {nullptr}
-
OnConnectionRefusedCb on_connection_refused_cb = {nullptr}
-
OnSendCompleted on_send_completed_cb = {nullptr}
Friends
-
friend std::ostream &operator<<(std::ostream &stream, const NetworkConfig &cfg)