Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: TCPServer.h
- Revision:
- 7:43a7e8c0d6cc
- Parent:
- 6:0914f9b9b24b
- Child:
- 8:9c6673c93082
--- a/TCPServer.h Tue Apr 05 09:20:32 2016 -0500 +++ b/TCPServer.h Tue Apr 05 10:40:34 2016 -0500 @@ -34,7 +34,7 @@ \param port The port to listen for incoming connections on \return 0 on success, negative on failure */ - int bind(int port); + int bind(uint16_t port); /** Start listening for incoming connections \param backlog Number of pending connections that can be queued up at any @@ -53,7 +53,7 @@ \param callback Function to call when accept will succeed, may be called in interrupt context. */ - void attach_accept(FuncPtr<void()> callback); + void attach_accept(mbed::FuncPtr<void()> callback); }; #endif