IcmpPinger.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 /* DEBUG: section 37 ICMP Routines */
10 
11 #ifndef _INCLUDE_ICMPPINGER_H
12 #define _INCLUDE_ICMPPINGER_H
13 #include "Icmp.h"
14 
18 class IcmpPinger : public Icmp
19 {
20 public:
21  IcmpPinger();
22  virtual ~IcmpPinger();
23 
25  virtual int Open();
26 
28  virtual void Close();
29 
30 #if USE_ICMP
31 
33  void SendResult(pingerReplyData &preply, int len);
34 
36  virtual void Recv(void);
37 
38 private:
39  // unused in IcmpPinger
40  virtual void SendEcho(Ip::Address &to, int opcode, const char *payload, int len) {};
41 
48 #endif /* USE_ICMP */
49 };
50 
51 #if USE_ICMP
52 
54 extern IcmpPinger control;
55 
56 #endif
57 
58 #endif
59 
Definition: Icmp.h:64
virtual ~IcmpPinger()
Definition: IcmpPinger.cc:32
virtual void SendEcho(Ip::Address &to, int opcode, const char *payload, int len)
Definition: IcmpPinger.h:40
int socket_from_squid
Definition: IcmpPinger.h:40
IcmpPinger control
pinger helper contains one of these as a global object.
Definition: pinger.cc:90
virtual int Open()
Start and initiate control channel to squid.
Definition: IcmpPinger.cc:47
int unsigned int const char *desc STUB void int len
Definition: stub_fd.cc:20
int socket_to_squid
Definition: IcmpPinger.h:47
virtual void Recv(void)
Handle ICMP requests from squid, passing to helpers.
Definition: IcmpPinger.cc:163
void SendResult(pingerReplyData &preply, int len)
Send ICMP results back to squid.
Definition: IcmpPinger.cc:216
virtual void Close()
Shutdown pinger helper and control channel.
Definition: IcmpPinger.cc:148

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors