Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of WIZnetInterface by
Diff: Socket/TCPSocketConnection.cpp
- Revision:
- 30:b67bcc6ee0bb
- Parent:
- 0:6f28332c466f
diff -r c91884bd2713 -r b67bcc6ee0bb Socket/TCPSocketConnection.cpp
--- a/Socket/TCPSocketConnection.cpp Tue Nov 17 06:35:55 2015 +0000
+++ b/Socket/TCPSocketConnection.cpp Thu Jun 29 18:58:37 2017 +0000
@@ -34,14 +34,14 @@
if (_sock_fd < 0) {
_sock_fd = eth->new_socket();
if (_sock_fd < 0) {
- return -1;
+ return -2;
}
}
if (set_address(host, port) != 0) {
- return -1;
+ return -3;
}
if (!eth->connect(_sock_fd, get_address(), port)) {
- return -1;
+ return -4;
}
set_blocking(false);
// add code refer from EthernetInterface.
