MQTT client test with W5200 ethernet shield

Dependents:   IBMIoTClientEthernetExample_W5200

Fork of W5500Interface by W5500-Ethernet-Interface Makers

Revision:
4:af0ed4fbca02
Parent:
0:e11e8793c3ce
Child:
5:8aefaef88f79
--- a/Socket/TCPSocketServer.cpp	Wed Aug 20 05:37:05 2014 +0000
+++ b/Socket/TCPSocketServer.cpp	Mon Sep 01 01:54:29 2014 +0000
@@ -81,11 +81,15 @@
     // and then, for the next connection, server socket should be assigned new one.
     _sock_fd = -1; // want to assign new available _sock_fd.
     if(bind(listen_port) < 0) {
-        error("No more socket for listening");
+        // modified by Patrick Pollet
+        error("No more socket for listening, bind error");
+        return -1;
     } else {
         //return -1;
         if(listen(1) < 0) {
-            error("No more socket for listening");
+            // modified by Patrick Pollet
+            error("No more socket for listening, listen error");
+            return -1;
         }
     }
     return 0;