Documentation ¶ Index ¶ func CheckSum(data []byte) uint16 func CurrentIP() (string, error) func GetRemoteAddress(headers map[string][]string, remoteIP string) string func Ping(addr string) (int, error) func PingTimeOut(addr string, milliscond int) (int, error) func TelNet(ip, port string) bool type ICMP Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func CheckSum ¶ func CheckSum(data []byte) uint16 func CurrentIP ¶ func CurrentIP() (string, error) func GetRemoteAddress ¶ func GetRemoteAddress(headers map[string][]string, remoteIP string) string func Ping ¶ func Ping(addr string) (int, error) func PingTimeOut ¶ func PingTimeOut(addr string, milliscond int) (int, error) func TelNet ¶ func TelNet(ip, port string) bool Types ¶ type ICMP ¶ type ICMP struct { Type uint8 Code uint8 Checksum uint16 Identifier uint16 SequenceNum uint16 } Source Files ¶ View all Source files net.goping.goremote_address.go Click to show internal directories. Click to hide internal directories.