yangyang
Fork of WIZnetInterface by
Diff: Socket/TCPSocketConnection.cpp
- Revision:
- 31:f6a5f6d1978b
- Parent:
- 30:6feeaebad180
- Child:
- 32:26fc4b6c5784
--- a/Socket/TCPSocketConnection.cpp Fri Nov 04 02:28:28 2016 +0000 +++ b/Socket/TCPSocketConnection.cpp Fri Nov 04 12:09:25 2016 +0000 @@ -31,22 +31,16 @@ int TCPSocketConnection::connect(const char* host, const int port) { - Serial pc5(PA_13,PA_14); - pc5.baud(115200); - pc5.printf("in connect\r\n"); if (_sock_fd < 0) { _sock_fd = eth->new_socket(); if (_sock_fd < 0) { - pc5.printf("in connect 1 return -1\r\n"); return -1; } } if (set_address(host, port) != 0) { - pc5.printf("in connect 2 return -1\r\n"); return -1; } if (!eth->connect(_sock_fd, get_address(), port)) {//should jion the timeout - pc5.printf("in connect 3 return -1\r\n"); return -1; } set_blocking(false); @@ -58,9 +52,6 @@ bool TCPSocketConnection::is_connected(void) { - Serial pc2(PA_13,PA_14); - pc2.baud(115200); - pc2.printf("in is_connected()\r\n"); // force update recent state. _is_connected = eth->is_connected(_sock_fd); return _is_connected;