Documentation ¶
Index ¶
Constants ¶
View Source
const ID protocol.ID = "/ipfs/identify"
ID is the protocol.ID of the Identify Service.
Variables ¶
View Source
var ClientVersion = "go-ipfs/" + config.CurrentVersionNumber
View Source
var IpfsVersion *semver.Version
IpfsVersion holds the current protocol version for a client running this code
Functions ¶
This section is empty.
Types ¶
type IDService ¶
IDService is a structure that implements ProtocolIdentify. It is a trivial service that gives the other peer some useful information about the local peer. A sort of hello.
The IDService sends:
- Our IPFS Protocol Version
- Our IPFS Agent Version
- Our public Listen Addresses
func NewIDService ¶
func (*IDService) IdentifyConn ¶
func (*IDService) IdentifyWait ¶
IdentifyWait returns a channel which will be closed once "ProtocolIdentify" (handshake3) finishes on given conn. This happens async so the connection can start to be used even if handshake3 knowledge is not necesary. Users **MUST** call IdentifyWait _after_ IdentifyConn
func (*IDService) RequestHandler ¶
func (*IDService) ResponseHandler ¶
Click to show internal directories.
Click to hide internal directories.