Documentation ¶
Index ¶
Constants ¶
View Source
const ID protocol.ID = "/ipfs/relay"
ID is the protocol.ID of the Relay Service.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type RelayService ¶
type RelayService struct {
// contains filtered or unexported fields
}
Relay is a structure that implements ProtocolRelay. It is a simple relay service which forwards traffic between two directly connected peers.
the protocol is very simple:
/ipfs/relay\n <multihash src id> <multihash dst id> <data stream>
func NewRelayService ¶
func NewRelayService(h host.Host, sh inet.StreamHandler) *RelayService
Click to show internal directories.
Click to hide internal directories.