NetworkSocketAPI

Dependencies:   DnsQuery

Dependents:   HelloWizFi250Interface

Fork of NetworkSocketAPI by NetworkSocketAPI

Files at this revision

API Documentation at this revision

Comitter:
Christopher Haster
Date:
Thu Feb 25 08:23:06 2016 -0600
Parent:
52:52a6c4ea7128
Child:
54:0c764f654352
Commit message:
Fixed issues with protected destructors

Changed in this revision

NetworkInterface.h Show annotated file Show diff for this revision Revisions of this file
Socket.h Show annotated file Show diff for this revision Revisions of this file
SocketInterface.h Show annotated file Show diff for this revision Revisions of this file
--- a/NetworkInterface.h	Thu Feb 25 06:42:40 2016 -0600
+++ b/NetworkInterface.h	Thu Feb 25 08:23:06 2016 -0600
@@ -48,6 +48,8 @@
 class NetworkInterface
 {
 public:
+    virtual ~NetworkInterface() {};
+
     /** Enables or disables DHCP
      *  @note DHCP resolution does not occur until connect
      *  @note DHCP is enabled by default
--- a/Socket.h	Thu Feb 25 06:42:40 2016 -0600
+++ b/Socket.h	Thu Feb 25 08:23:06 2016 -0600
@@ -26,6 +26,8 @@
 class Socket
 {
 public:
+    ~Socket();
+
     /** Set the URL of the socket
      *  Performs DNS lookup if necessary
      *  @param url URL to connect to
@@ -89,7 +91,6 @@
 
 protected:
     Socket(NetworkInterface *iface, socket_protocol_t proto);
-    ~Socket();
 
 private:
     NetworkInterface *_iface;
--- a/SocketInterface.h	Thu Feb 25 06:42:40 2016 -0600
+++ b/SocketInterface.h	Thu Feb 25 08:23:06 2016 -0600
@@ -36,6 +36,8 @@
 class SocketInterface
 {
 public:
+    virtual ~SocketInterface() {}
+
     /** Set the IP address of the socket
      *  @param ip IP address to connect to
      */