Go to the documentation of this file.
11 #ifndef SQUID_IPC_SHARED_LISTEN_H
12 #define SQUID_IPC_SHARED_LISTEN_H
int fd
opened listening socket or -1
SharedListenRequest(const OpenListenerParams &, RequestId aMapId)
sender's constructor
QuestionerId intendedRecepient() const
for Mine() tests
a request for a listen socket with given parameters
int fdNote
index into fd_note() comment strings
bool operator<(const OpenListenerParams &p) const
useful for map<>
Subscription::Pointer handlerSubscription
handler to subscribe to Comm::ConnAcceptor when we get the response
"shared listen" is when concurrent processes are listening on the same fd
void JoinSharedListen(const OpenListenerParams &, AsyncCall::Pointer &)
prepare and send SharedListenRequest to Coordinator
int errNo
errno value from comm_open_sharedListen() call
SharedListenResponse(int fd, int errNo, RequestId aMapId)
sender's constructor
void pack(TypedMsgHdr &hdrMsg) const
prepare for sendmsg()
OpenListenerParams params
actual comm_open_sharedListen() parameters
RequestId mapId
to map future response to the requestor's callback
a response to SharedListenRequest
Ip::Address addr
will be memset and memcopied
QuestionerId questioner() const
struct msghdr with a known type, fixed-size I/O and control buffers
void SharedListenJoined(const SharedListenResponse &response)
process Coordinator response to SharedListenRequest
RequestId mapId
to map future response to the requestor's callback
int requestorId
kidId of the requestor
void pack(TypedMsgHdr &hdrMsg) const
prepare for sendmsg()