ap

Dependencies:   DnsQuery

Dependents:   WizFi310_TCP_Echo_Server_Example

Fork of NetworkSocketAPI by NetworkSocketAPI

Branch:
api-changes
Revision:
27:d7ed39727306
Parent:
25:ed7b2a52e8ac
Child:
28:163fbe3263f4
--- a/Socket.h	Thu Feb 18 06:16:11 2016 -0600
+++ b/Socket.h	Thu Feb 18 09:20:39 2016 -0600
@@ -29,8 +29,9 @@
     /** Set the URL of the socket
      *  Performs DNS lookup if necessary
      *  @param url URL to connect to
+     *  @return 0 on success
      */
-    void setURL(const char *url);
+    int32_t setURL(const char *url);
 
     /** Set the IP address of the socket
      *  @param ip IP address to connect to, copied internally
@@ -83,6 +84,10 @@
     NetworkInterface *_iface;
     socket_protocol_t _proto;
     SocketInterface *_socket;
+
+    char *_pending_url;
+    char *_pending_ip;
+    uint16_t _pending_port;
 };
 
 #endif