Connect to TWS server. Read and write NUL-terminated strings.