NetworkSocketAPI / NetworkSocketAPI

Dependencies:   DnsQuery

Dependents:   TempTower BSDInterfaceTests HelloBSDInterface ESP8266InterfaceTests ... more

Revision:
58:1caa187fa5af
Parent:
57:3c873fab4207
Child:
63:531f4c27f360
--- a/SocketInterface.h	Thu Feb 25 19:00:39 2016 -0600
+++ b/SocketInterface.h	Thu Feb 25 21:20:25 2016 -0600
@@ -38,24 +38,6 @@
 public:
     virtual ~SocketInterface() {}
 
-    /** Set the IP address of the socket
-     *  @param ip IP address to connect to
-     */
-    virtual void setIPAddress(const char *ip) { (void)ip; }
-
-    /** Set the port of the socket
-     *  @param port Port to connect to
-     */
-    virtual void setPort(uint16_t port) { (void)port; }
-
-    /** Status of the socket
-     *  @return True if connected
-     */
-    virtual bool isConnected()
-    {
-        // By default return true if socket was created successfully
-        return true;
-    }
 
     /** Open a connection to the underlying address
      *  @param ip IP address to connect to
@@ -86,6 +68,16 @@
      *  @return Number of bytes received or a negative value on failure
      */
     virtual int32_t recv(void *data, uint32_t size) = 0;
+
+
+    /** Status of the socket
+     *  @return True if connected
+     */
+    virtual bool isConnected()
+    {
+        // By default return true if socket was created successfully
+        return true;
+    }
 };
 
 #endif