pub struct CommonServiceDiscoveryConfig<'a> {
pub multicast_rx_socket: &'a SocketAddress,
pub multicast_rx_pdu: &'a GeneralPurposePdu,
pub remote_socket: &'a SocketAddress,
pub prefer_static_socket_connections: bool,
pub ipdu_identifier_set: Option<&'a SocketConnectionIpduIdentifierSet>,
pub name_prefix: Option<&'a str>,
}
Expand description
A CommonServiceDiscoveryConfig
contains common configuration settings for System::configure_service_discovery_for_ecu
.
This struct contains ECU-independent settings that should be re-used for all ECUs that are configured for SD.
Fields§
§multicast_rx_socket: &'a SocketAddress
the socket address used for multicast rx by all SD ECUs
multicast_rx_pdu: &'a GeneralPurposePdu
the multicast rx PDU used by all SD ECUs
remote_socket: &'a SocketAddress
the remote socket used for SD communication. This socket must have an IP address (v4 or v6) set to ANY.
prefer_static_socket_connections: bool
configure_service_discovery_for_ecu
checks if any SocketConnectionBundles
exist. If so, the old configuration method must be used.
If none are found and the version is new enough, both methods are possible, and this flag determines which one to use.
ipdu_identifier_set: Option<&'a SocketConnectionIpduIdentifierSet>
an ipdu identifier set in which PduTriggerings
are created. Only needed for StaticSocketConnections
.
name_prefix: Option<&'a str>
an optional prefix for the names of the created elements