net/ServerSocket: pass UniqueSocketDescriptor&& to OnAccept()

This commit is contained in:
Max Kellermann
2017-08-10 19:13:18 +02:00
parent 492b20a89d
commit 9a5bcc6db0
9 changed files with 35 additions and 28 deletions

View File

@@ -32,6 +32,7 @@
#include <stddef.h>
class UniqueSocketDescriptor;
class HttpdOutput;
class HttpdClient final
@@ -131,7 +132,8 @@ public:
* @param httpd the HTTP output device
* @param _fd the socket file descriptor
*/
HttpdClient(HttpdOutput &httpd, SocketDescriptor _fd, EventLoop &_loop,
HttpdClient(HttpdOutput &httpd, UniqueSocketDescriptor &&_fd,
EventLoop &_loop,
bool _metadata_supported);
/**