netwrapper

package
v0.0.0-...-88616a3 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2018 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NetAddr

type NetAddr struct {
	Addr string
}

NetAddr .

func (*NetAddr) Network

func (addr *NetAddr) Network() string

Network .

func (*NetAddr) String

func (addr *NetAddr) String() string

String .

type StreamConn

type StreamConn struct {
	inet.Stream
}

StreamConn libp2p wrapper to adapter net.Conn

func (*StreamConn) LocalAddr

func (c *StreamConn) LocalAddr() net.Addr

LocalAddr returns the local address.

func (*StreamConn) RemoteAddr

func (c *StreamConn) RemoteAddr() net.Addr

RemoteAddr returns the remote address.

Jump to

Keyboard shortcuts

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