DongEun Koak / NetworkSocketAPI

Dependencies:   DnsQuery

Dependents:   HelloWizFi250Interface

Fork of NetworkSocketAPI by NetworkSocketAPI

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;
+}
+