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: |