bd35c1aeb8
My comment in 1b0230e4df
was misleading, even if
doing this for Unix only, if we had done it as I was first thinking, we would
have needed to pass sockets between processes. But we won't, we will instead
keep all the connections to the clients in the same master process, and pass
on the WebSocketg protocol as such to child processes. That way the child
processes can go away when idle, or crash, without the connections
breaking. Or something.
37 lines
793 B
C++
37 lines
793 B
C++
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
|
/*
|
|
* This file is part of the LibreOffice project.
|
|
*
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
*/
|
|
|
|
#include <iostream>
|
|
|
|
#include <Poco/Net/Socket.h>
|
|
|
|
#include "MigratorySocket.hpp"
|
|
|
|
using Poco::Net::Socket;
|
|
|
|
MigratorySocket::MigratorySocket(const Socket& socket) :
|
|
Socket(socket)
|
|
{
|
|
}
|
|
|
|
MigratorySocket::MigratorySocket(Poco::Net::SocketImpl* pImpl) :
|
|
Socket(pImpl)
|
|
{
|
|
}
|
|
|
|
MigratorySocket::~MigratorySocket()
|
|
{
|
|
}
|
|
|
|
poco_socket_t MigratorySocket::sockfd() const
|
|
{
|
|
return Socket::sockfd();
|
|
}
|
|
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|