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
Revision 30:206920aceb69, committed 2017-11-27
- Comitter:
- jcm931213
- Date:
- Mon Nov 27 11:49:56 2017 +0000
- Parent:
- 29:c91884bd2713
- Commit message:
- modify for blynk
Changed in this revision
--- 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
--- 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;
};
