-
Notifications
You must be signed in to change notification settings - Fork 0
/
ICMPPingAutoReply.h
49 lines (39 loc) · 1.27 KB
/
ICMPPingAutoReply.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
// EtherDune ICMP automatic Echo reply class
// Author: Javier Peletier <[email protected]>
// Summary: Implements an ICMP Echo reply service
//
// Copyright (c) 2015 All Rights Reserved, http://friendev.com
//
// This source is subject to the GPLv2 license.
// Please see the License.txt file for more information.
// All other rights reserved.
//
// THIS CODE AND INFORMATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
// KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
// IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
// PARTICULAR PURPOSE.
/// \class ICMPPingAutoReply
/// \brief Implements an ICMP Echo reply service
/// \details By instantiating this class and keeping the object alive, your
/// application will respond to all incoming ping requests.
/// Useful to see from the network if your microcontroller is alive!
///
/// This class has no public members. To use it, simply put the following code in your .ino file, outside of any function:
///
/// \code
/// #include <ICMPAutoReply.h>
///
/// ICMPAutoReply echo;
/// \endcode
///
/// See PingTest.ino for an example
#ifndef _ICMPAUTOREPLY_H_
#define _ICMPAUTOREPLY_H_
#include <ACross.h>
#include "ICMP.h"
class ICMPPingAutoReply : protected ICMP
{
private:
bool onICMPMessage();
};
#endif