netutil

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2021 License: MIT Imports: 3 Imported by: 2

Documentation

Overview

Package netutil implements some network utility functions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetOutBoundIP

func GetOutBoundIP() (net.IP, error)

GetOutBoundIP get preferred outbound ip of current process.

https://stackoverflow.com/a/37382208

Types

type JConn

type JConn struct {
	// contains filtered or unexported fields
}

func NewJConn

func NewJConn(conn net.Conn) *JConn

func (*JConn) Accept

func (jconn *JConn) Accept(v interface{}) bool

func (*JConn) Close

func (jconn *JConn) Close()

Close only close gzip.Reader/gzip.Writer. Source net.Conn should be closed manually.

func (*JConn) Send

func (jconn *JConn) Send(v interface{})

Jump to

Keyboard shortcuts

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