NetworkSocketAPI

Dependencies:   DnsQuery

Dependents:   HelloWizFi250Interface

Fork of NetworkSocketAPI by NetworkSocketAPI

Revision:
79:43a7e8c0d6cc
Parent:
78:0914f9b9b24b
Child:
80:9c6673c93082
--- a/TCPSocket.h	Tue Apr 05 09:20:32 2016 -0500
+++ b/TCPSocket.h	Tue Apr 05 10:40:34 2016 -0500
@@ -36,7 +36,7 @@
     \param port     The host's port to connect to
     \return         0 on success, negative on failure
     */
-    int connect(const char* host, const int port);
+    int connect(const char *host, uint16_t port);
 
     /** Connects this TCP socket to the server
     \param address  SocketAddress to connect to
@@ -67,13 +67,16 @@
     \param callback Function to call when send will succeed, may be called in
                     interrupt context.
     */
-    void attach_send(FuncPtr<void()> callback);
+    void attach_send(mbed::FuncPtr<void()> callback);
 
     /** Register a callback on when recv is ready
     \param callback Function to call when recv will succeed, may be called in
                     interrupt context.
     */
-    void attach_recv(FuncPtr<void()> callback);
+    void attach_recv(mbed::FuncPtr<void()> callback);
+
+private:
+    friend class TCPServer;
 };
 
 #endif