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.cpp
- Revision:
- 20:dd5f19874adf
- Parent:
- 18:0a988e4abb72
- Child:
- 21:65a9f84862f0
diff -r cad29ce6a01c -r dd5f19874adf TCPServer.cpp
--- a/TCPServer.cpp Tue Apr 19 18:23:12 2016 -0500
+++ b/TCPServer.cpp Tue Apr 19 18:23:29 2016 -0500
@@ -76,22 +76,3 @@
}
}
}
-
-
-void TCPServer::attach_accept(FunctionPointer callback)
-{
- _accept_cb = callback;
-
- if (_socket && _accept_cb) {
- return _iface->socket_attach_accept(_socket, Socket::thunk, &_accept_cb);
- } else if (_socket) {
- return _iface->socket_attach_accept(_socket, 0, 0);
- }
-}
-
-TCPServer::~TCPServer()
-{
- if (_socket && _accept_cb) {
- _iface->socket_attach_accept(_socket, 0, 0);
- }
-}