dist

package
v1.999.224 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 1, 2023 License: MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HandshakeVersion5 node.HandshakeVersion = 5
	HandshakeVersion6 node.HandshakeVersion = 6

	DefaultHandshakeVersion = HandshakeVersion5
	DefaultHandshakeTimeout = 5 * time.Second
)
View Source
const (
	DefaultEPMDPort uint16 = 4369
)

Variables

This section is empty.

Functions

func CreateHandshake

func CreateHandshake(options HandshakeOptions) node.HandshakeInterface

func CreateProto

func CreateProto(options node.ProtoOptions) node.ProtoInterface

func CreateRegistrar

func CreateRegistrar() node.Registrar

func CreateRegistrarWithLocalEPMD

func CreateRegistrarWithLocalEPMD(host string, port uint16) node.Registrar

func CreateRegistrarWithRemoteEPMD

func CreateRegistrarWithRemoteEPMD(host string, port uint16) node.Registrar

Types

type DistHandshake

type DistHandshake struct {
	node.Handshake
	// contains filtered or unexported fields
}

DistHandshake implements Erlang handshake

func (*DistHandshake) Accept

func (dh *DistHandshake) Accept(remote net.Addr, conn lib.NetReadWriter, tls bool, cookie string) (node.HandshakeDetails, error)

func (*DistHandshake) Init

func (dh *DistHandshake) Init(nodename string, creation uint32, flags node.Flags) error

Init implements Handshake interface mothod

func (*DistHandshake) Start

func (dh *DistHandshake) Start(remote net.Addr, conn lib.NetReadWriter, tls bool, cookie string) (node.HandshakeDetails, error)

func (*DistHandshake) Version

func (dh *DistHandshake) Version() node.HandshakeVersion

type HandshakeOptions

type HandshakeOptions struct {
	Timeout time.Duration
	Version node.HandshakeVersion // 5 or 6
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL