pefect / NetworkSocketAPI

Dependencies:   DnsQuery

Dependents:   WizFi310_TCP_Echo_Server_Example

Fork of NetworkSocketAPI by NetworkSocketAPI

Branch:
api-changes
Revision:
36:eab792dfb0d8
Parent:
32:2c5fc105fc50
Child:
38:157fb2ab965f
--- a/SocketInterface.h	Mon Feb 22 20:05:20 2016 -0600
+++ b/SocketInterface.h	Mon Feb 22 20:08:04 2016 -0600
@@ -47,9 +47,11 @@
     virtual void setPort(uint16_t port);
 
     /** Open a connection to the underlying address
+     *  @param ip IP address to connect to
+     *  @param port Port to connect to
      *  @return 0 on success
      */
-    virtual int32_t open() = 0;
+    virtual int32_t open(const char *ip, uint16_t port) = 0;
 
     /** Close an open connection
      *  @return 0 on success