/*
- * DEBUG: section 54 Interprocess Communication
+ * Copyright (C) 1996-2017 The Squid Software Foundation and contributors
*
+ * Squid software is distributed under GPLv2+ license and includes
+ * contributions from numerous individuals and organizations.
+ * Please see the COPYING and CONTRIBUTORS files for details.
*/
+/* DEBUG: section 54 Interprocess Communication */
+
#include "squid.h"
#include "comm.h"
#include "comm/Connection.h"
#include "comm/Read.h"
#include "CommCalls.h"
-#include "globals.h"
#include "ipc/Port.h"
+#include "tools.h"
+#include "util.h"
static const char channelPathPfx[] = DEFAULT_STATEDIR "/";
static const char coordinatorAddrLabel[] = "-coordinator";
const char Ipc::strandAddrLabel[] = "-kid";
Ipc::Port::Port(const String& aListenAddr):
- UdsOp(aListenAddr)
+ UdsOp(aListenAddr)
{
setOptions(COMM_NONBLOCKING | COMM_DOBIND);
}
{
assert(id >= 0);
String addr = channelPathPfx;
- addr.append(service_name);
+ addr.append(service_name.c_str());
addr.append(processLabel);
addr.append('-');
addr.append(xitoa(id));
static String coordinatorAddr;
if (!coordinatorAddr.size()) {
coordinatorAddr= channelPathPfx;
- coordinatorAddr.append(service_name);
+ coordinatorAddr.append(service_name.c_str());
coordinatorAddr.append(coordinatorAddrLabel);
coordinatorAddr.append(".ipc");
}
doListen();
}
+