Documentation
¶
Index ¶
Constants ¶
View Source
const ( // ProtocolICMP is the number of the Internet Control Message Protocol // (see golang.org/x/net/internal/iana.ProtocolICMP) ProtocolICMP = 1 // ProtocolICMPv6 is the IPv6 Next Header value for ICMPv6 // see golang.org/x/net/internal/iana.ProtocolIPv6ICMP ProtocolICMPv6 = 58 )
Variables ¶
View Source
var ( Logger = &logwrap.Instance{} // SetLogger allows updating the Logger. For details, see // "github.com/digineo/go-logwrap".Instance.SetLogger. SetLogger = Logger.SetLogger )
Functions ¶
This section is empty.
Types ¶
type Conn ¶
func (*Conn) Open ¶
New creates a new Pinger. This will open the raw socket and start the receiving logic. You'll need to call Close() to cleanup.
func (*Conn) SetUnexpectedPacketLogging ¶
Click to show internal directories.
Click to hide internal directories.