45 comm_read(conn(), buf.raw(), buf.size(), readHandler);
67 static String coordinatorAddr;
68 if (!coordinatorAddr.
size()) {
70 coordinatorAddr.
append(
".ipc");
72 return coordinatorAddr;
100 debugs(54, 6,
"message type: " << buf.rawType());
101 receiveOrIgnore(buf);
#define JobCallback(dbgSection, dbgLevel, Dialer, job, method)
Convenience macro to create a Dialer-based job callback.
#define Here()
source code location of the caller
static const char channelPathPfx[]
static const char coordinatorAddrLabel[]
void comm_read(const Comm::ConnectionPointer &conn, char *buf, int len, AsyncCall::Pointer &callback)
std::ostream & CurrentException(std::ostream &os)
prints active (i.e., thrown but not yet handled) exception
virtual void start()
called by AsyncStart; do not call directly
Comm::Flag flag
comm layer result status.
Comm::ConnectionPointer conn
static std::ostream & Extra(std::ostream &)
void noteRead(const CommIoCbParams ¶ms)
Port(const String &aListenAddr)
bool doneAll() const override
whether positive goal has been reached
void doListen()
read the next incoming message
void start() override=0
called by AsyncStart; do not call directly
void receiveOrIgnore(const TypedMsgHdr &)
receive() but ignore any errors
virtual void receive(const TypedMsgHdr &)=0
static String CoordinatorAddr()
get the IPC message address for coordinator process
static String MakeAddr(const char *proccessLabel, int id)
calculates IPC message address for strand id of processLabel type
struct msghdr with a known type, fixed-size I/O and control buffers
void setOptions(int newOptions)
changes socket options
void append(char const *buf, int len)
an std::runtime_error with thrower location info
#define debugs(SECTION, LEVEL, CONTENT)
SBuf NamePrefix(const char *head, const char *tail=nullptr)
const char strandAddrLabel[]
strand's listening address unique label
SBuf ToSBuf(Args &&... args)
slowly stream-prints all arguments into a freshly allocated SBuf
const char * xitoa(int num)