StrandCoord.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 1996-2017 The Squid Software Foundation and contributors
3  *
4  * Squid software is distributed under GPLv2+ license and includes
5  * contributions from numerous individuals and organizations.
6  * Please see the COPYING and CONTRIBUTORS files for details.
7  */
8 
9 #ifndef SQUID_IPC_STRAND_COORD_H
10 #define SQUID_IPC_STRAND_COORD_H
11 
12 #include "ipc/forward.h"
13 #include "SquidString.h"
14 
15 namespace Ipc
16 {
17 
20 {
21 public:
22  StrandCoord();
23  StrandCoord(int akidId, pid_t aPid);
24 
25  void pack(TypedMsgHdr &hdrMsg) const;
26  void unpack(const TypedMsgHdr &hdrMsg);
27 
28 public:
29  int kidId;
30  pid_t pid;
31 
33 };
34 
37 {
38 public:
39  explicit HereIamMessage(const StrandCoord &strand);
40  explicit HereIamMessage(const TypedMsgHdr &hdrMsg);
41  void pack(TypedMsgHdr &hdrMsg) const;
42 
43 public:
45 };
46 
47 } // namespace Ipc;
48 
49 #endif /* SQUID_IPC_STRAND_COORD_H */
50 
strand registration with Coordinator (also used as an ACK)
Definition: StrandCoord.h:36
StrandCoord strand
registrant coordinates and related details
Definition: StrandCoord.h:44
void unpack(const TypedMsgHdr &hdrMsg)
from recvmsg()
Definition: StrandCoord.cc:26
Strand location details.
Definition: StrandCoord.h:19
void pack(TypedMsgHdr &hdrMsg) const
prepare for sendmsg()
Definition: StrandCoord.cc:33
int kidId
internal Squid process number
Definition: StrandCoord.h:29
void pack(TypedMsgHdr &hdrMsg) const
prepare for sendmsg()
Definition: StrandCoord.cc:51
StrandCoord()
unknown location
Definition: StrandCoord.cc:17
struct msghdr with a known type, fixed-size I/O and control buffers
Definition: TypedMsgHdr.h:31
HereIamMessage(const StrandCoord &strand)
from registrant
Definition: StrandCoord.cc:40
String tag
optional unique well-known key (e.g., cache_dir path)
Definition: StrandCoord.h:32
pid_t pid
OS process or thread identifier.
Definition: StrandCoord.h:30

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors