ap

Dependencies:   DnsQuery

Dependents:   WizFi310_TCP_Echo_Server_Example

Fork of NetworkSocketAPI by NetworkSocketAPI

Branch:
api-changes
Revision:
43:09ea32f2eb54
Parent:
42:49893d13c432
Child:
48:b3bbe28a7963
--- a/Socket.h	Tue Feb 23 05:07:02 2016 -0600
+++ b/Socket.h	Wed Feb 24 22:04:19 2016 -0600
@@ -53,16 +53,6 @@
      */
     uint16_t getPort() const;
 
-    /** Set a timeout on network operations
-     *  @param timeout Maximum time in milliseconds for socket operations
-     */
-    void setTimeout(uint32_t timeout);
-
-    /** Get the current timeout on network operations
-     *  @return Maximum time in milliseconds for socket operations
-     */
-    uint32_t getTimeout() const;
-
     /** Returns status of socket
      *  @return true if connected
      */
@@ -70,11 +60,11 @@
 
 
     /** Open a connection to the underlying address
-     *  @param url Optional URL or IP address to connect to
+     *  @param address Optional URL or IP address to connect to
      *  @param port Optional port to connect to
      *  @return 0 on success
      */
-    int32_t open(const char *url = 0, uint16_t port = 0);
+    int32_t open(const char *address = 0, uint16_t port = 0);
 
     /** Close an open connection
      *  @return 0 on success
@@ -107,7 +97,6 @@
 
     char _ip_address[NS_IP_SIZE];
     uint16_t _port;
-    uint32_t _timeout;
 };
 
 #endif