49 strand.unpack(hdrMsg);
64 static const auto pid = getpid();
69 message.
pack(msgType, hdr);
static String CoordinatorAddr()
get the IPC message address for coordinator process
void unpack(const TypedMsgHdr &hdrMsg)
from recvmsg()
void pack(TypedMsgHdr &hdrMsg) const
prepare for sendmsg()
StrandCoord()
unknown location
String tag
optional unique well-known key (e.g., cache_dir path)
an IPC message carrying StrandCoord
StrandMessage(const StrandCoord &, QuestionerId)
void pack(MessageType, TypedMsgHdr &) const
static void NotifyCoordinator(MessageType, const char *tag)
creates and sends StrandMessage to Coordinator
StrandCoord strand
messageType-specific coordinates (e.g., sender)
struct msghdr with a known type, fixed-size I/O and control buffers
void putString(const String &s)
store variable-length string
void getPod(Pod &pod) const
load POD
void getString(String &s) const
load variable-length string
void putPod(const Pod &pod)
store POD
void setType(int aType)
sets message type; use MessageType enum
void SendMessage(const String &toAddress, const TypedMsgHdr &message)
QuestionerId MyQuestionerId()
the questioner ID of the current/calling process
MessageType
message class identifier