ceaefabc91
This reverts commit 97c8f35ddf
.
Since the Broker design has been extremely simplified,
all communication between Broker <-> Kit are gone.
Only a pipe between WSD and Broker remain.
Temporarily reverting this to apply the Broker redesign,
after which this patch can be reviewed and merged.
This will be easier than trying to merge the redesigned
Broker on top of this.
Change-Id: Ia901fad604008654c01841df62e88918adad45e1
Reviewed-on: https://gerrit.libreoffice.org/23769
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
43 lines
1.5 KiB
C++
43 lines
1.5 KiB
C++
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; fill-column: 100 -*- */
|
|
/*
|
|
* 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/.
|
|
*/
|
|
|
|
// Default values and other shared data between processes.
|
|
#ifndef INCLUDED_COMMON_HPP
|
|
#define INCLUDED_COMMON_HPP
|
|
|
|
#include <string>
|
|
|
|
// The maximum number of client connections we can accept.
|
|
constexpr int MAX_SESSIONS = 1024;
|
|
|
|
constexpr int DEFAULT_CLIENT_PORT_NUMBER = 9980;
|
|
constexpr int MASTER_PORT_NUMBER = 9981;
|
|
constexpr int INTERVAL_PROBES = 10;
|
|
constexpr int MAINTENANCE_INTERVAL = 1;
|
|
constexpr int CHILD_TIMEOUT_SECS = 10;
|
|
constexpr int POLL_TIMEOUT_MS = 1000;
|
|
|
|
/// Pipe and Socket read buffer size.
|
|
/// Should be large enough for ethernet packets
|
|
/// which can be 1500 bytes long.
|
|
constexpr int READ_BUFFER_SIZE = 2048;
|
|
/// Size after which messages will be sent preceded with
|
|
/// 'nextmessage' frame to let the receiver know in advance
|
|
/// the size of larger coming message. All messages up to this
|
|
/// size are considered small messages.
|
|
constexpr int SMALL_MESSAGE_SIZE = READ_BUFFER_SIZE / 2;
|
|
|
|
constexpr auto CHILD_URI = "/loolws/child?";
|
|
constexpr auto FIFO_LOOLWSD = "loolwsdfifo";
|
|
constexpr auto FIFO_PATH = "pipe";
|
|
constexpr auto JAILED_DOCUMENT_ROOT = "/user/docs/";
|
|
constexpr auto SSL_KEY_FILE = "key.pem";
|
|
|
|
#endif
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|