Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Pinger ¶
type Pinger struct { Timeout float32 //The timeout, in secs, to wait for a EchoReply Interval float32 //The time to wait between pings on this host Iterations int //The number of messages to be sent to the target PacketSize int //The size of the Packet to be sent PongChannel chan Pong //A pointer to a channel of Pong objects. May be nil SummaryChannel chan Summary //A pointer to a channel of Summary objects. May be nil // contains filtered or unexported fields }
The object that will store global ping parameters and perform the ping operations This should be invoked before adding ping requests
type Pong ¶
type Pong struct { Request *Request //THe original request object When time.Time //The time the reply was received Err error // If eny error happened, this goes here, including timeout Rtt float64 // THe elapsed time, in miliseconds, spending from throwing the packet and receiving the packet Peer net.Addr //THe peer that respond to the pong request Size int //THe size of the packet Data []byte //The bytes received from the network }
Represents a Ping response
Click to show internal directories.
Click to hide internal directories.