]> git.ipfire.org Git - thirdparty/squid.git/blobdiff - src/ipc/Strand.h
Source Format Enforcement (#532)
[thirdparty/squid.git] / src / ipc / Strand.h
index e574b7bd0d3017de56f6eeee279df4ffe384df9a..c6392494d1e179fa172eef3131ce48052e927fbe 100644 (file)
@@ -1,13 +1,17 @@
 /*
- * $Id$
- *
- * DEBUG: section 54    Interprocess Communication
+ * Copyright (C) 1996-2020 The Squid Software Foundation and contributors
  *
+ * Squid software is distributed under GPLv2+ license and includes
+ * contributions from numerous individuals and organizations.
+ * Please see the COPYING and CONTRIBUTORS files for details.
  */
 
+/* DEBUG: section 54    Interprocess Communication */
+
 #ifndef SQUID_IPC_STRAND_H
 #define SQUID_IPC_STRAND_H
 
+#include "ipc/forward.h"
 #include "ipc/Port.h"
 #include "mgr/forward.h"
 #if SQUID_SNMP
@@ -22,6 +26,8 @@ class StrandCoord;
 /// Receives coordination messages on behalf of its process or thread
 class Strand: public Port
 {
+    CBDATA_CLASS(Strand);
+
 public:
     Strand();
 
@@ -33,7 +39,7 @@ protected:
 
 private:
     void registerSelf(); /// let Coordinator know this strand exists
-    void handleRegistrationResponse(const StrandCoord &strand);
+    void handleRegistrationResponse(const HereIamMessage &msg);
     void handleCacheMgrRequest(const Mgr::Request& request);
     void handleCacheMgrResponse(const Mgr::Response& response);
 #if SQUID_SNMP
@@ -47,12 +53,9 @@ private:
 private:
     Strand(const Strand&); // not implemented
     Strand& operator =(const Strand&); // not implemented
-
-    CBDATA_CLASS2(Strand);
 };
 
-
 }
 
-
 #endif /* SQUID_IPC_STRAND_H */
+