Documentation
¶
Overview ¶
Package handshake_pb is a generated protocol buffer package.
It is generated from these files:
handshake.proto
It has these top-level messages:
Handshake1 Handshake3
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handshake1 ¶
type Handshake1 struct { // protocolVersion determines compatibility between peers ProtocolVersion *string `protobuf:"bytes,1,opt,name=protocolVersion" json:"protocolVersion,omitempty"` // agentVersion is like a UserAgent string in browsers, or client version in bittorrent // includes the client name and client. e.g. "go-ipfs/0.1.0" AgentVersion *string `protobuf:"bytes,2,opt,name=agentVersion" json:"agentVersion,omitempty"` XXX_unrecognized []byte `json:"-"` }
Handshake1 is delivered _before_ the secure channel is initialized
func (*Handshake1) GetAgentVersion ¶
func (m *Handshake1) GetAgentVersion() string
func (*Handshake1) GetProtocolVersion ¶
func (m *Handshake1) GetProtocolVersion() string
func (*Handshake1) ProtoMessage ¶
func (*Handshake1) ProtoMessage()
func (*Handshake1) Reset ¶
func (m *Handshake1) Reset()
func (*Handshake1) String ¶
func (m *Handshake1) String() string
type Handshake3 ¶
type Handshake3 struct { // listenAddrs are the multiaddrs the sender node listens for open connections on ListenAddrs [][]byte `protobuf:"bytes,2,rep,name=listenAddrs" json:"listenAddrs,omitempty"` // oservedAddr is the multiaddr of the remote endpoint that the sender node perceives // this is useful information to convey to the other side, as it helps the remote endpoint // determine whether its connection to the local peer goes through NAT. ObservedAddr []byte `protobuf:"bytes,4,opt,name=observedAddr" json:"observedAddr,omitempty"` XXX_unrecognized []byte `json:"-"` }
Handshake3 is delivered _after_ the secure channel is initialized
func (*Handshake3) GetListenAddrs ¶
func (m *Handshake3) GetListenAddrs() [][]byte
func (*Handshake3) GetObservedAddr ¶
func (m *Handshake3) GetObservedAddr() []byte
func (*Handshake3) ProtoMessage ¶
func (*Handshake3) ProtoMessage()
func (*Handshake3) Reset ¶
func (m *Handshake3) Reset()
func (*Handshake3) String ¶
func (m *Handshake3) String() string
Click to show internal directories.
Click to hide internal directories.