EventGroup
- class someipy.EventGroup(id, events)
Class representing a SOME/IP eventgroup with an eventgroup id and a list of event ids.
- Parameters:
id (int) –
events (List[Event]) –
- __hash__()
Return a hash based on the group id and contained event ids.
- classmethod from_json(json_str)
Create an EventGroup from a JSON string.
Parameters
- json_strstr
JSON representation of an EventGroup.
Returns
EventGroup
- Parameters:
json_str (str) –
- Return type:
_T
- property has_tcp: bool
Checks if the event group contains any events with TCP protocol.
Returns
- bool
True if at least one event uses TCP, False otherwise.
- property has_udp: bool
Checks if the event group contains any events with UDP protocol.
Returns
- bool
True if at least one event uses UDP, False otherwise.
- id: int