NetworkSocketAPI
Dependents: HelloWizFi250Interface
Fork of NetworkSocketAPI by
Diff: TCPServer.h
- Revision:
- 92:dd5f19874adf
- Parent:
- 90:0a988e4abb72
- Child:
- 96: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