IcmpSquid.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_ICMPSQUID_H
12 #define _INCLUDE_ICMPSQUID_H
13 
14 #include "Icmp.h"
15 
24 class IcmpSquid : public Icmp
25 {
26 public:
27  IcmpSquid();
28  virtual ~IcmpSquid();
29 
30  virtual int Open();
31  virtual void Close();
32 
33  void DomainPing(Ip::Address &to, const char *domain);
34 
35 #if USE_ICMP
36  virtual void SendEcho(Ip::Address &to, int opcode, const char* payload=NULL, int len=0);
37  virtual void Recv(void);
38 #endif
39 };
40 
41 // global engine within squid.
42 extern IcmpSquid icmpEngine;
43 
44 #endif /* _INCLUDE_ICMPSQUID_H */
45 
void DomainPing(Ip::Address &to, const char *domain)
Definition: IcmpSquid.cc:181
Definition: Icmp.h:64
virtual ~IcmpSquid()
Definition: IcmpSquid.cc:44
virtual void Recv(void)
Handle ICMP responses.
Definition: IcmpSquid.cc:120
virtual int Open()
Start pinger helper and initiate control channel.
Definition: IcmpSquid.cc:190
int unsigned int const char *desc STUB void int len
Definition: stub_fd.cc:20
virtual void Close()
Shutdown pinger helper and control channel.
Definition: IcmpSquid.cc:255
virtual void SendEcho(Ip::Address &to, int opcode, const char *payload=NULL, int len=0)
Definition: IcmpSquid.cc:52
IcmpSquid icmpEngine
Definition: IcmpSquid.cc:27
#define NULL
Definition: types.h:166

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors