znet

package
v0.0.0-...-473e0bf Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 10, 2019 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertIP

func ConvertIP(iphex string) (ip string, err error)

ConvertIP 将网络字节序的IP地址转换成人可识别的IP地址

func ConvertToHex

func ConvertToHex(ip string) (ipHex []byte, err error)

ConvertToHex 将IP地址转换为十六进制数据 例如将 127.0.0.1 转换为 7F 00 00 01

func GetFreePort

func GetFreePort() (int, error)

GetFreePort 获取当前空闲的端口

##### Example

```go

port, err := GetFreePort()

```

func LocallIP

func LocallIP() (string, error)

LocallIP 获取本地IP地址

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL