Versions in this module Expand all Collapse all v0 v0.1.0 Aug 3, 2021 Changes in this version + const MaxWelcomeMessageLength + const ProtocolName + const ProtocolVersion + const StreamName + var ErrHandshakeDuplicate = errors.New("duplicate handshake") + var ErrInvalidAck = errors.New("invalid ack") + var ErrInvalidSyn = errors.New("invalid syn") + var ErrNetworkIDIncompatible = errors.New("incompatible network ID") + var ErrWelcomeMessageLength = fmt.Errorf("handshake welcome message longer than maximum of %d characters", ...) + type AdvertisableAddressResolver interface + Resolve func(observedAddress ma.Multiaddr) (ma.Multiaddr, error) + type Info struct + BzzAddress *bzz.Address + FullNode bool + func (i *Info) LightString() string + type SenderMatcher interface + Matches func(ctx context.Context, tx []byte, networkID uint64, senderOverlay swarm.Address) ([]byte, error) + type Service struct + func New(signer crypto.Signer, advertisableAddresser AdvertisableAddressResolver, ...) (*Service, error) + func (s *Service) Disconnected(_ network.Network, c network.Conn) + func (s *Service) GetWelcomeMessage() string + func (s *Service) Handle(ctx context.Context, stream p2p.Stream, remoteMultiaddr ma.Multiaddr, ...) (i *Info, err error) + func (s *Service) Handshake(ctx context.Context, stream p2p.Stream, peerMultiaddr ma.Multiaddr, ...) (i *Info, err error) + func (s *Service) SetWelcomeMessage(msg string) (err error)