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.
Dependents: HelloWizFi250Interface
Fork of NetworkSocketAPI by
Diff: SocketInterface.cpp
- Branch:
- api-changes
- Revision:
- 38:157fb2ab965f
- Parent:
- 31:7f15b95f2a1d
- Child:
- 41:3ec1c97e9bbf
--- a/SocketInterface.cpp Tue Feb 23 17:35:56 2016 +0000
+++ b/SocketInterface.cpp Mon Feb 22 20:51:09 2016 -0600
@@ -15,7 +15,14 @@
*/
#include "SocketInterface.h"
-
+
+// By default setIPAddress/setPort has no special behaviour
void SocketInterface::setIPAddress(const char *ip) {}
void SocketInterface::setPort(uint16_t port) {}
+// By default isConnected is always true if the socket
+// was created successfully
+bool SocketInterface::isConnected() {
+ return true;
+}
+
