mirror of
https://github.com/python/cpython.git
synced 2025-11-01 18:51:43 +00:00
small fixes
This commit is contained in:
parent
951213e8ca
commit
ee3de2a8b5
2 changed files with 4 additions and 4 deletions
|
|
@ -376,7 +376,7 @@ class RawBroadcastUDPClient(RawUDPClient):
|
|||
|
||||
def connsocket(self):
|
||||
# Don't connect -- use sendto
|
||||
self.sock.allowbroadcast(1)
|
||||
self.sock.setsockopt(socket.SOL_SOCKET, socket.SO_BROADCAST, 1)
|
||||
|
||||
def set_reply_handler(self, reply_handler):
|
||||
self.reply_handler = reply_handler
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue