DebugClients/Python/DebugClientBase.py

changeset 4220
4df8f9fc7ea9
parent 4118
3c9fa4b8869d
child 4269
5ba44a2de31a
equal deleted inserted replaced
4219:a6ee92e1f023 4220:4df8f9fc7ea9
1127 @param remoteAddress the network address of the debug server host 1127 @param remoteAddress the network address of the debug server host
1128 (string) 1128 (string)
1129 @param redirect flag indicating redirection of stdin, stdout and 1129 @param redirect flag indicating redirection of stdin, stdout and
1130 stderr (boolean) 1130 stderr (boolean)
1131 """ 1131 """
1132 # TODO: replace this by socket.create_connection
1132 if remoteAddress is None: # default: 127.0.0.1 1133 if remoteAddress is None: # default: 127.0.0.1
1133 sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) 1134 sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
1134 sock.connect((DebugProtocol.DebugAddress, port)) 1135 sock.connect((DebugProtocol.DebugAddress, port))
1135 else: 1136 else:
1136 if "@@i" in remoteAddress: 1137 if "@@i" in remoteAddress:

eric ide

mercurial