We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6d6ed34 commit 364183aCopy full SHA for 364183a
can/interfaces/udp_multicast/bus.py
@@ -34,6 +34,9 @@
34
SO_TIMESTAMPNS = 35
35
SIOCGSTAMP = 0x8906
36
37
+# Additional constants for the interaction with the Winsock API
38
+WSAEINVAL = 10022
39
+
40
41
class UdpMulticastBus(BusABC):
42
"""A virtual interface for CAN communications between multiple processes using UDP over Multicast IP.
@@ -279,7 +282,7 @@ def _create_socket(self, address_family: socket.AddressFamily) -> socket.socket:
279
282
if (
280
283
error.errno == errno.ENOPROTOOPT
281
284
or error.errno == errno.EINVAL
- or error.errno == errno.WSAEINVAL
285
+ or error.errno == WSAEINVAL
286
): # It is unavailable on macOS (ENOPROTOOPT) or windows(EINVAL/WSAEINVAL)
287
self.timestamp_nanosecond = False
288
else:
0 commit comments