DebugClients/Python3/DebugClientBase.py

changeset 4220
4df8f9fc7ea9
parent 4118
3c9fa4b8869d
child 4269
5ba44a2de31a
equal deleted inserted replaced
4219:a6ee92e1f023 4220:4df8f9fc7ea9
1138 @param remoteAddress the network address of the debug server host 1138 @param remoteAddress the network address of the debug server host
1139 (string) 1139 (string)
1140 @param redirect flag indicating redirection of stdin, stdout and 1140 @param redirect flag indicating redirection of stdin, stdout and
1141 stderr (boolean) 1141 stderr (boolean)
1142 """ 1142 """
1143 # TODO: replace this by socket.create_connection
1143 if remoteAddress is None: # default: 127.0.0.1 1144 if remoteAddress is None: # default: 127.0.0.1
1144 sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) 1145 sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
1145 sock.connect((DebugProtocol.DebugAddress, port)) 1146 sock.connect((DebugProtocol.DebugAddress, port))
1146 else: 1147 else:
1147 if "@@i" in remoteAddress: 1148 if "@@i" in remoteAddress:

eric ide

mercurial