StrandSearch.cc
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 /* DEBUG: section 54 Interprocess Communication */
10 
11 #include "squid.h"
12 #include "ipc/Messages.h"
13 #include "ipc/StrandSearch.h"
14 #include "ipc/TypedMsgHdr.h"
15 
17 {
18 }
19 
21  requestorId(-1)
22 {
24  hdrMsg.getPod(requestorId);
25  hdrMsg.getString(tag);
26 }
27 
29 {
31  hdrMsg.putPod(requestorId);
32  hdrMsg.putString(tag);
33 }
34 
35 /* StrandSearchResponse */
36 
38  strand(aStrand)
39 {
40 }
41 
43 {
45  strand.unpack(hdrMsg);
46 }
47 
49 {
51  strand.pack(hdrMsg);
52 }
53 
int requestorId
sender-provided return address
Definition: StrandSearch.h:28
String tag
set when looking for a matching StrandCoord::tag
Definition: StrandSearch.h:29
void pack(TypedMsgHdr &hdrMsg) const
prepare for sendmsg()
Definition: StrandSearch.cc:48
Strand location details.
Definition: StrandCoord.h:19
void getPod(Pod &pod) const
load POD
Definition: TypedMsgHdr.h:50
void putPod(const Pod &pod)
store POD
Definition: TypedMsgHdr.h:52
void pack(TypedMsgHdr &hdrMsg) const
prepare for sendmsg()
Definition: StrandSearch.cc:28
StrandSearchResponse(const StrandCoord &strand)
Definition: StrandSearch.cc:37
void putString(const String &s)
store variable-length string
Definition: TypedMsgHdr.cc:133
struct msghdr with a known type, fixed-size I/O and control buffers
Definition: TypedMsgHdr.h:31
void checkType(int aType) const
throws if stored type is not aType
Definition: TypedMsgHdr.cc:84
void getString(String &s) const
load variable-length string
Definition: TypedMsgHdr.cc:115
void setType(int aType)
sets message type; use MessageType enum
Definition: TypedMsgHdr.cc:90

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors