Documentation ¶
Overview ¶
Package v030 is a collection of classes for p2p version 0.3.0 It contains IO, handshake, handlers, etc.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type V030Handshaker ¶
type V030Handshaker struct {
// contains filtered or unexported fields
}
V030Handshaker exchange status data over protocol version .0.3.0
func NewV030VersionedHS ¶ added in v1.2.0
func NewV030VersionedHS(pm p2pcommon.PeerManager, actor p2pcommon.ActorService, log *log.Logger, chainID *types.ChainID, peerID types.PeerID, rwc io.ReadWriteCloser) *V030Handshaker
func (*V030Handshaker) DoForInbound ¶
DoForInbound is handle handshake from inbound peer
func (*V030Handshaker) DoForOutbound ¶
handshakeOutboundPeer start handshake with outbound peer
func (*V030Handshaker) GetMsgRW ¶
func (h *V030Handshaker) GetMsgRW() p2pcommon.MsgReadWriter
type V030ReadWriter ¶
type V030ReadWriter struct {
// contains filtered or unexported fields
}
func NewV030MsgPipe ¶ added in v1.2.0
func NewV030MsgPipe(s io.ReadWriteCloser) *V030ReadWriter
func NewV030ReadWriter ¶
func (*V030ReadWriter) AddIOListener ¶ added in v1.2.0
func (rw *V030ReadWriter) AddIOListener(l p2pcommon.MsgIOListener)
func (*V030ReadWriter) Close ¶ added in v1.2.0
func (rw *V030ReadWriter) Close() error
type V032Handshaker ¶ added in v1.2.0
type V032Handshaker struct { V030Handshaker // contains filtered or unexported fields }
V032Handshaker exchange status data over protocol version .0.3.1 it
func NewV032VersionedHS ¶ added in v1.2.0
func NewV032VersionedHS(pm p2pcommon.PeerManager, actor p2pcommon.ActorService, log *log.Logger, chainID *types.ChainID, peerID types.PeerID, rwc io.ReadWriteCloser, genesis []byte) *V032Handshaker
func (*V032Handshaker) DoForInbound ¶ added in v1.2.0
func (*V032Handshaker) DoForOutbound ¶ added in v1.2.0
func (*V032Handshaker) GetMsgRW ¶ added in v1.2.0
func (h *V032Handshaker) GetMsgRW() p2pcommon.MsgReadWriter
Click to show internal directories.
Click to hide internal directories.