summaryrefslogtreecommitdiffstats
path: root/Demo/rpc/rpc.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1995-10-04 18:39:03 (GMT)
committerGuido van Rossum <guido@python.org>1995-10-04 18:39:03 (GMT)
commitee3de2a8b5cbf94c7aa2e8f6405dd6e4627d2cbf (patch)
tree2dbcf4cfbc05c9987c38886ef52a3f2f74596699 /Demo/rpc/rpc.py
parent951213e8ca3fb25b6765dfbcd148b20584516894 (diff)
downloadcpython-ee3de2a8b5cbf94c7aa2e8f6405dd6e4627d2cbf.zip
cpython-ee3de2a8b5cbf94c7aa2e8f6405dd6e4627d2cbf.tar.gz
cpython-ee3de2a8b5cbf94c7aa2e8f6405dd6e4627d2cbf.tar.bz2
small fixes
Diffstat (limited to 'Demo/rpc/rpc.py')
-rw-r--r--Demo/rpc/rpc.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Demo/rpc/rpc.py b/Demo/rpc/rpc.py
index fb21fc2..83cc954 100644
--- a/Demo/rpc/rpc.py
+++ b/Demo/rpc/rpc.py
@@ -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