Skip to content
Snippets Groups Projects
Commit 8d277a9f authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

fix INET sockets

parent f3c27cdc
Branches
Tags
No related merge requests found
......@@ -232,9 +232,11 @@ class client :
addr = self.addr
if '/' in addr or '\\' in addr or ':' not in addr :
self.socket = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM)
self.socket.connect(addr)
else :
self.socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
self.socket.connect(addr)
s = addr.split(':')
self.socket.connect((s[0], int(s[1])))
#self.socket.setblocking(1)
#self.socket.settimeout(5.0)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment