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