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:
- 20:dd5f19874adf
- Parent:
- 18:0a988e4abb72
- Child:
- 24:656011e49d9f
--- a/TCPServer.h Tue Apr 19 18:23:12 2016 -0500 +++ b/TCPServer.h Tue Apr 19 18:23:29 2016 -0500 @@ -54,20 +54,6 @@ * @return 0 on success, negative on failure. */ int accept(TCPSocket *connection); - - /** Register a callback on when a new connection is ready - * @param callback Function to call when accept will succeed, may be called in - * interrupt context. - */ - void attach_accept(FunctionPointer callback); - - template <typename T, typename M> - void attach_accept(T *tptr, M mptr) { - attach_accept(FunctionPointer(tptr, mptr)); - } - -private: - FunctionPointer _accept_cb; }; #endif