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.h
- Branch:
- api-changes
- Revision:
- 38:157fb2ab965f
- Parent:
- 36:eab792dfb0d8
- Child:
- 41:3ec1c97e9bbf
--- a/SocketInterface.h Tue Feb 23 17:35:56 2016 +0000
+++ b/SocketInterface.h Mon Feb 22 20:51:09 2016 -0600
@@ -46,6 +46,11 @@
*/
virtual void setPort(uint16_t port);
+ /** Status of the socket
+ * @return True if connected
+ */
+ virtual bool isConnected();
+
/** Open a connection to the underlying address
* @param ip IP address to connect to
* @param port Port to connect to
