manet

package module
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2020 License: MIT Imports: 3 Imported by: 224

README

DEPRECATION NOTICE

This package has moved into go-multiaddr as a sub-package, github.com/multiformats/go-multiaddr/net.

go-multiaddr-net

GoDoc Travis CI

Multiaddress net tools

This package provides Multiaddr specific versions of common functions in stdlib's net package. This means wrappers of standard net symbols like net.Dial and net.Listen, as well as conversion to and from net.Addr.

Table of Contents

Install

go-multiaddr-net is a standard Go module which can be installed with:

go get github.com/multiformats/go-multiaddr-net

Note that go-multiaddr-net is packaged with Gx, so it is recommended to use Gx to install and use it (see Usage section).

Usage

See the docs:

Contribute

Contributions welcome. Please check out the issues.

Check out our contributing document for more information on how we work, and about contributing in general. Please be aware that all interactions related to multiformats are subject to the IPFS Code of Conduct.

Small note: If editing the README, please conform to the standard-readme specification.

License

MIT © 2014 Juan Batiz-Benet

Documentation

Overview

Deprecated: use github.com/multiformats/go-multiaddr/net

Deprecated: use github.com/multiformats/go-multiaddr/net

Index

Constants

This section is empty.

Variables

View Source
var (
	// Deprecated: use github.com/multiformats/go-multiaddr/net
	IP4Loopback = upstream.IP4Loopback

	// Deprecated: use github.com/multiformats/go-multiaddr/net
	IP6Loopback = upstream.IP6Loopback

	// Deprecated: use github.com/multiformats/go-multiaddr/net
	IP4MappedIP6Loopback = upstream.IP4MappedIP6Loopback
)
View Source
var (
	// Deprecated: use github.com/multiformats/go-multiaddr/net
	IP4Unspecified = upstream.IP4Unspecified
	// Deprecated: use github.com/multiformats/go-multiaddr/net
	IP6Unspecified = upstream.IP6Unspecified
)
View Source
var Private4 = upstream.Private4

Deprecated: use github.com/multiformats/go-multiaddr/net

View Source
var Private6 = upstream.Private6

Deprecated: use github.com/multiformats/go-multiaddr/net

View Source
var Unroutable4 = upstream.Unroutable4

Deprecated: use github.com/multiformats/go-multiaddr/net

View Source
var Unroutable6 = upstream.Unroutable6

Deprecated: use github.com/multiformats/go-multiaddr/net

Functions

func AddrMatch deprecated

func AddrMatch(match ma.Multiaddr, addrs []ma.Multiaddr) []ma.Multiaddr

Deprecated: use github.com/multiformats/go-multiaddr/net

func DialArgs deprecated

func DialArgs(m ma.Multiaddr) (string, string, error)

Deprecated: use github.com/multiformats/go-multiaddr/net

func FromIP deprecated

func FromIP(ip net.IP) (ma.Multiaddr, error)

Deprecated: use github.com/multiformats/go-multiaddr/net

func FromIPAndZone deprecated

func FromIPAndZone(ip net.IP, zone string) (ma.Multiaddr, error)

Deprecated: use github.com/multiformats/go-multiaddr/net

func FromNetAddr deprecated

func FromNetAddr(a net.Addr) (ma.Multiaddr, error)

Deprecated: use github.com/multiformats/go-multiaddr/net

func InterfaceMultiaddrs deprecated

func InterfaceMultiaddrs() ([]ma.Multiaddr, error)

Deprecated: use github.com/multiformats/go-multiaddr/net

func IsIP6LinkLocal deprecated

func IsIP6LinkLocal(m ma.Multiaddr) bool

Deprecated: use github.com/multiformats/go-multiaddr/net

func IsIPLoopback deprecated

func IsIPLoopback(m ma.Multiaddr) bool

Deprecated: use github.com/multiformats/go-multiaddr/net

func IsIPUnspecified deprecated

func IsIPUnspecified(m ma.Multiaddr) bool

Deprecated: use github.com/multiformats/go-multiaddr/net

func IsPrivateAddr deprecated

func IsPrivateAddr(a ma.Multiaddr) bool

Deprecated: use github.com/multiformats/go-multiaddr/net

func IsPublicAddr deprecated

func IsPublicAddr(a ma.Multiaddr) bool

Deprecated: use github.com/multiformats/go-multiaddr/net

func IsThinWaist deprecated

func IsThinWaist(m ma.Multiaddr) bool

Deprecated: use github.com/multiformats/go-multiaddr/net

func NetListener deprecated

func NetListener(l Listener) net.Listener

Deprecated: use github.com/multiformats/go-multiaddr/net

func RegisterNetCodec deprecated

func RegisterNetCodec(a *NetCodec)

Deprecated: use github.com/multiformats/go-multiaddr/net

func ToIP deprecated added in v0.1.3

func ToIP(addr ma.Multiaddr) (net.IP, error)

Deprecated: use github.com/multiformats/go-multiaddr/net

func ToNetAddr deprecated

func ToNetAddr(maddr ma.Multiaddr) (net.Addr, error)

Deprecated: use github.com/multiformats/go-multiaddr/net

Types

type CodecMap deprecated

type CodecMap = upstream.CodecMap

Deprecated: use github.com/multiformats/go-multiaddr/net

func NewCodecMap deprecated

func NewCodecMap() *CodecMap

Deprecated: use github.com/multiformats/go-multiaddr/net

type Conn deprecated

type Conn = upstream.Conn

Deprecated: use github.com/multiformats/go-multiaddr/net

func Dial deprecated

func Dial(remote ma.Multiaddr) (Conn, error)

Deprecated: use github.com/multiformats/go-multiaddr/net

func WrapNetConn deprecated

func WrapNetConn(nconn net.Conn) (Conn, error)

Deprecated: use github.com/multiformats/go-multiaddr/net

type Dialer deprecated

type Dialer = upstream.Dialer

Deprecated: use github.com/multiformats/go-multiaddr/net

type FromNetAddrFunc deprecated

type FromNetAddrFunc func(a net.Addr) (ma.Multiaddr, error)

Deprecated: use github.com/multiformats/go-multiaddr/net

type Listener deprecated

type Listener = upstream.Listener

Deprecated: use github.com/multiformats/go-multiaddr/net

func Listen deprecated

func Listen(laddr ma.Multiaddr) (Listener, error)

Deprecated: use github.com/multiformats/go-multiaddr/net

func WrapNetListener deprecated

func WrapNetListener(nl net.Listener) (Listener, error)

Deprecated: use github.com/multiformats/go-multiaddr/net

type NetCodec deprecated

type NetCodec = upstream.NetCodec

Deprecated: use github.com/multiformats/go-multiaddr/net

type PacketConn deprecated

type PacketConn = upstream.PacketConn

Deprecated: use github.com/multiformats/go-multiaddr/net

func ListenPacket deprecated

func ListenPacket(laddr ma.Multiaddr) (PacketConn, error)

Deprecated: use github.com/multiformats/go-multiaddr/net

func WrapPacketConn deprecated

func WrapPacketConn(pc net.PacketConn) (PacketConn, error)

Deprecated: use github.com/multiformats/go-multiaddr/net

type ToNetAddrFunc deprecated

type ToNetAddrFunc func(ma ma.Multiaddr) (net.Addr, error)

Deprecated: use github.com/multiformats/go-multiaddr/net

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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