changeset 771 | 4c74be252095 |
parent 631 | 08b6b903f84a |
child 774 | 91d708a2cb4e |
--- a/drivers/can_tcp_win32/can_tcp_win32.cpp Tue Mar 05 20:08:37 2013 +0900 +++ b/drivers/can_tcp_win32/can_tcp_win32.cpp Wed Mar 06 11:32:27 2013 +0900 @@ -91,10 +91,11 @@ { Socket* s; try { - s = new SocketClient(board->busname, 11898); - - //s.SendLine("GET / HTTP/1.0"); - //s.SendLine("Host: www.google.com"); + char *dst = "127.0.0.1"; + if(strlen(board->busname)){ + dst=board->busname; + } + s = new SocketClient(dst, 11898); } catch (const char* _s) { cerr << _s << endl;