2019-05-23 01:31:11 +08:00
|
|
|
package network
|
|
|
|
|
|
|
|
import (
|
2022-08-18 23:54:48 +08:00
|
|
|
"github.com/libp2p/go-libp2p/core/network"
|
2019-05-23 01:31:11 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
// Conn is a connection to a remote peer. It multiplexes streams.
|
|
|
|
// Usually there is no need to use a Conn directly, but it may
|
|
|
|
// be useful to get information about the peer on the other side:
|
2022-08-18 23:54:48 +08:00
|
|
|
//
|
|
|
|
// stream.Conn().RemotePeer()
|
|
|
|
//
|
|
|
|
// Deprecated: use github.com/libp2p/go-libp2p/core/network.Conn instead
|
|
|
|
type Conn = network.Conn
|
2019-05-23 01:31:11 +08:00
|
|
|
|
|
|
|
// ConnSecurity is the interface that one can mix into a connection interface to
|
|
|
|
// give it the security methods.
|
2022-08-18 23:54:48 +08:00
|
|
|
// Deprecated: use github.com/libp2p/go-libp2p/core/network.ConnSecurity instead
|
|
|
|
type ConnSecurity = network.ConnSecurity
|
2019-05-23 01:31:11 +08:00
|
|
|
|
|
|
|
// ConnMultiaddrs is an interface mixin for connection types that provide multiaddr
|
|
|
|
// addresses for the endpoints.
|
2022-08-18 23:54:48 +08:00
|
|
|
// Deprecated: use github.com/libp2p/go-libp2p/core/network.ConnMultiaddrs instead
|
|
|
|
type ConnMultiaddrs = network.ConnMultiaddrs
|
2021-02-04 19:27:23 +08:00
|
|
|
|
2021-02-17 17:21:51 +08:00
|
|
|
// ConnStat is an interface mixin for connection types that provide connection statistics.
|
2022-08-18 23:54:48 +08:00
|
|
|
// Deprecated: use github.com/libp2p/go-libp2p/core/network.ConnStat instead
|
|
|
|
type ConnStat = network.ConnStats
|
2022-01-17 15:15:05 +08:00
|
|
|
|
|
|
|
// ConnScoper is the interface that one can mix into a connection interface to give it a resource
|
|
|
|
// management scope
|
2022-08-18 23:54:48 +08:00
|
|
|
// Deprecated: use github.com/libp2p/go-libp2p/core/network.ConnScoper instead
|
|
|
|
type ConnScoper = network.ConnScoper
|