namespace launchpad {
namespace {
+constexpr const char kRunAulDaemonsPath[] = "/run/aul/daemons/";
constexpr const char kLaunchpadProcessPoolSock[] =
".launchpad-process-pool-sock";
const int kReceivedBufferSize = 131071;
const int kMaxPendingConnection = 128;
int GetLaunchpadFdFromSystemd() {
- const std::string path = "/run/aul/daemons/" + std::to_string(getuid()) +
+ const std::string path = kRunAulDaemonsPath + std::to_string(getuid()) +
"/" + std::string(kLaunchpadProcessPoolSock);
int fds = sd_listen_fds(0);
for (int fd = SD_LISTEN_FDS_START; fd < SD_LISTEN_FDS_START + fds; ++fd) {
return new ServerSocket(fd);
auto* socket = new ServerSocket();
- const std::string endpoint = "/run/aul/daeons/" + std::to_string(getuid()) +
+ const std::string endpoint = kRunAulDaemonsPath + std::to_string(getuid()) +
kLaunchpadProcessPoolSock;
socket->Bind(endpoint);
socket->SetReceiveBufferSize(kReceivedBufferSize);