modify for blynk

Fork of WIZnetInterface by WIZnet

Files at this revision

API Documentation at this revision

Comitter:
jcm931213
Date:
Mon Nov 27 11:49:56 2017 +0000
Parent:
29:c91884bd2713
Commit message:
modify for blynk

Changed in this revision

Socket/TCPSocketConnection.cpp Show annotated file Show diff for this revision Revisions of this file
Socket/TCPSocketConnection.h Show annotated file Show diff for this revision Revisions of this file
diff -r c91884bd2713 -r 206920aceb69 Socket/TCPSocketConnection.cpp
--- a/Socket/TCPSocketConnection.cpp	Tue Nov 17 06:35:55 2015 +0000
+++ b/Socket/TCPSocketConnection.cpp	Mon Nov 27 11:49:56 2017 +0000
@@ -144,3 +144,11 @@
     }
     return readLen;
 }
+
+int TCPSocketConnection::getsock(void) {
+	return _sock_fd;
+}
+
+void TCPSocketConnection::setsock(int sock){
+	_sock_fd=sock;
+}
\ No newline at end of file
diff -r c91884bd2713 -r 206920aceb69 Socket/TCPSocketConnection.h
--- a/Socket/TCPSocketConnection.h	Tue Nov 17 06:35:55 2015 +0000
+++ b/Socket/TCPSocketConnection.h	Mon Nov 27 11:49:56 2017 +0000
@@ -72,7 +72,10 @@
     \return the number of received bytes on success (>=0) or -1 on failure
     */
     int receive_all(char* data, int length);
-
+    
+    int getsock(void);
+    void setsock(int sock);
+    
 private:
     bool _is_connected;
 };