2015-12-27 16:23:43 -06:00
|
|
|
/* -*- 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
|
|
|
|
|
2016-01-06 12:49:10 -06:00
|
|
|
#include <string>
|
|
|
|
|
2016-01-31 21:34:18 -06:00
|
|
|
// The maximum number of client connections we can accept.
|
|
|
|
constexpr int MAX_SESSIONS = 1024;
|
|
|
|
|
2015-12-28 15:34:21 -06:00
|
|
|
constexpr int DEFAULT_CLIENT_PORT_NUMBER = 9980;
|
|
|
|
constexpr int MASTER_PORT_NUMBER = 9981;
|
|
|
|
constexpr int INTERVAL_PROBES = 10;
|
|
|
|
constexpr int MAINTENANCE_INTERVAL = 1;
|
2016-01-13 18:28:51 -06:00
|
|
|
constexpr int CHILD_TIMEOUT_SECS = 10;
|
2016-01-23 16:35:16 -06:00
|
|
|
constexpr int POLL_TIMEOUT_MS = 1000;
|
2016-01-21 07:49:43 -06:00
|
|
|
|
|
|
|
/// 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;
|
2015-12-27 16:23:43 -06:00
|
|
|
|
2016-01-06 22:37:18 -06:00
|
|
|
static const std::string JailedDocumentRoot = "/user/docs/";
|
2016-01-06 12:49:10 -06:00
|
|
|
|
2015-12-27 16:23:43 -06:00
|
|
|
#endif
|
|
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|