11111

Dependents:   espyun1

Fork of WIZnetInterface by WIZnet

Revision:
30:6feeaebad180
Parent:
0:6f28332c466f
diff -r c91884bd2713 -r 6feeaebad180 Socket/Socket.cpp
--- a/Socket/Socket.cpp	Tue Nov 17 06:35:55 2015 +0000
+++ b/Socket/Socket.cpp	Fri Nov 04 02:28:28 2016 +0000
@@ -17,7 +17,7 @@
  */
 
 #include "Socket.h"
-
+//Serial pc(PA_13,PA_14);
 Socket::Socket() : _sock_fd(-1),_blocking(true), _timeout(1500)
 {
     eth = WIZnet_Chip::getInstance();
@@ -36,8 +36,10 @@
 {
     // add this code refer from EthernetInterface.
     // update by Patrick Pollet
+    //pc.printf("In Socket::close()\r\n");
     int res;
     res = eth->close(_sock_fd);
+    //pc.printf("make _sock_fd = -1\r\n");
     _sock_fd = -1;
     return (res)? 0: -1;
 }