mirror of
https://github.com/RGBCube/serenity
synced 2025-05-23 17:35:10 +00:00
ProtocolServer: Port to socket takeover
This commit is contained in:
parent
bd55938985
commit
9eaac26eda
3 changed files with 4 additions and 3 deletions
|
@ -9,8 +9,8 @@ int main(int, char**)
|
|||
CEventLoop event_loop;
|
||||
(void)*new HttpProtocol;
|
||||
auto server = CLocalServer::construct();
|
||||
unlink("/tmp/psportal");
|
||||
server->listen("/tmp/psportal");
|
||||
bool ok = server->take_over_from_system_server();
|
||||
ASSERT(ok);
|
||||
server->on_ready_to_accept = [&] {
|
||||
auto client_socket = server->accept();
|
||||
if (!client_socket) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue