diff options
Diffstat (limited to 'Demo/sockets/throughput.py')
-rwxr-xr-x | Demo/sockets/throughput.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Demo/sockets/throughput.py b/Demo/sockets/throughput.py index 58975bf..fa250e7 100755 --- a/Demo/sockets/throughput.py +++ b/Demo/sockets/throughput.py @@ -44,7 +44,7 @@ def server(): else: port = MY_PORT s = socket(AF_INET, SOCK_STREAM) - s.bind('', port) + s.bind(('', port)) s.listen(1) print 'Server ready...' while 1: @@ -72,7 +72,7 @@ def client(): t1 = time.time() s = socket(AF_INET, SOCK_STREAM) t2 = time.time() - s.connect(host, port) + s.connect((host, port)) t3 = time.time() i = 0 while i < count: |