Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type StreamAddr ¶
type StreamAddr struct {
// contains filtered or unexported fields
}
StreamAddr implements the net.Addr interface
func (*StreamAddr) Network ¶
func (sa *StreamAddr) Network() string
func (*StreamAddr) String ¶
func (sa *StreamAddr) String() string
type StreamConn ¶
StreamConn is libp2p network.Stream wrapper, which implements the Golang net.Conn interface
func NewStreamConn ¶
func NewStreamConn(s network.Stream) *StreamConn
func (*StreamConn) LocalAddr ¶
func (ns *StreamConn) LocalAddr() net.Addr
LocalAddr returns the local network address.
func (*StreamConn) RemoteAddr ¶
func (ns *StreamConn) RemoteAddr() net.Addr
RemoteAddr returns the remote network address.
Click to show internal directories.
Click to hide internal directories.