1
0
mirror of https://github.com/JoelBender/bacpypes synced 2025-10-27 00:57:47 +08:00

synchronize changes with other versions

This commit is contained in:
Joel Bender
2015-10-28 22:13:16 -04:00
parent 6a75341ec3
commit a85f67699b
3 changed files with 7 additions and 5 deletions

View File

@@ -4,6 +4,7 @@
BACnet Virtual Link Layer Service
"""
import sys
import struct
from time import time as _time
@@ -88,8 +89,8 @@ class UDPMultiplexer:
self.directPort = UDPDirector(self.addrTuple)
bind(self.direct, self.directPort)
# create and bind the broadcast address
if specialBroadcast and (not noBroadcast):
# create and bind the broadcast address for non-Windows
if specialBroadcast and (not noBroadcast) and 'win' not in sys.platform:
self.broadcast = _MultiplexClient(self)
self.broadcastPort = UDPDirector(self.addrBroadcastTuple, reuse=True)
bind(self.direct, self.broadcastPort)