]>
git.ipfire.org Git - thirdparty/squid.git/blob - src/ipc/Messages.h
4 * DEBUG: section 54 Interprocess Communication
8 #ifndef SQUID_IPC_MESSAGES_H
9 #define SQUID_IPC_MESSAGES_H
11 #include <sys/types.h>
13 /** Declarations used by varios IPC messages */
20 /// message class identifier
21 typedef enum { mtNone
= 0, mtRegistration
,
22 mtSharedListenRequest
, mtSharedListenResponse
} MessageType
;
24 /// Strand location details
27 StrandCoord(); ///< unknown location
28 StrandCoord(int akidId
, pid_t aPid
); ///< from registrant
29 explicit StrandCoord(const TypedMsgHdr
&hdrMsg
); ///< from recvmsg()
30 void pack(TypedMsgHdr
&hdrMsg
) const; ///< prepare for sendmsg()
33 int kidId
; ///< internal Squid process number
34 pid_t pid
; ///< OS process or thread identifier
40 #endif /* SQUID_IPC_MESSAGES_H */