gxnet

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2018 License: Apache-2.0 Imports: 3 Imported by: 43

Documentation

Overview

Package gxnet encapsulates some network functions

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetLocalIP

func GetLocalIP(addr string) (string, error)

如果@addr为空,则获取本机的私有地址

func HostAddress

func HostAddress(host string, port int) string

HostAddress composes a ip:port style address. Its opposite function is net.SplitHostPort.

func HostAddress2

func HostAddress2(host string, port string) string

func HostPort

func HostPort(addr string) (string, string, error)

func WSHostAddress

func WSHostAddress(host string, port int, path string) string

func WSHostAddress2

func WSHostAddress2(host string, port string, path string) string

func WSSHostAddress

func WSSHostAddress(host string, port int, path string) string

func WSSHostAddress2

func WSSHostAddress2(host string, port string, path string) string

Types

This section is empty.

Directories

Path Synopsis
2017-10-31 14:30 Package gxurl implements URL function encapsulation
2017-10-31 14:30 Package gxurl implements URL function encapsulation

Jump to

Keyboard shortcuts

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