My fork

Dependencies:   WncControllerK64F

Fork of WNCInterface by Jan Korycan

Revision:
28:dceb8da78e6d
Parent:
26:81e520908460
Child:
29:b278b745fb4f
diff -r 2dc9461c04dc -r dceb8da78e6d Socket/WncTCPSocketConnection.cpp
--- a/Socket/WncTCPSocketConnection.cpp	Fri Mar 24 21:50:50 2017 +0000
+++ b/Socket/WncTCPSocketConnection.cpp	Fri Mar 24 22:02:33 2017 +0000
@@ -47,7 +47,7 @@
 
 
 int TCPSocketConnection::connect(const char* host, const int port) {
-    Socket::connect((char*)host, SOCK_STREAM, port);
+    WncSocket::connect((char*)host, SOCK_STREAM, port);
     _is_blocking = false;   // start out not blocking, user will set it if desired
     return ( WNCInterface::_pwnc->getWncStatus() == WncController_fk::WncController::WNC_ON )? 0:-1;
 }
@@ -115,7 +115,7 @@
 }
 
 int TCPSocketConnection::close(void) {
-  Socket::disconnect();
+  WncSocket::disconnect();
   M_LOCK;
   int ret = ( WNCInterface::_pwnc->getWncStatus() == WncController_fk::WncController::WNC_ON )? 0:-1;
   M_ULOCK;