ap

Dependencies:   DnsQuery

Dependents:   WizFi310_TCP_Echo_Server_Example

Fork of NetworkSocketAPI by NetworkSocketAPI

Branch:
api-changes
Revision:
38:157fb2ab965f
Parent:
36:eab792dfb0d8
Child:
39:47138420ea42
--- a/Socket.cpp	Tue Feb 23 17:35:56 2016 +0000
+++ b/Socket.cpp	Mon Feb 22 20:51:09 2016 -0600
@@ -71,6 +71,15 @@
     return _port;
 }
 
+bool Socket::isConnected()
+{
+    if (!_socket) {
+        return false;
+    }
+
+    return _socket->isConnected();
+}
+
 int32_t Socket::open(const char *url, uint16_t port)
 {
     if (_socket) {