Documentation ¶
Index ¶
- Constants
- func CreateHandshake(options HandshakeOptions) node.HandshakeInterface
- func CreateProto(options node.ProtoOptions) node.ProtoInterface
- func CreateRegistrar() node.Registrar
- func CreateRegistrarWithLocalEPMD(host string, port uint16) node.Registrar
- func CreateRegistrarWithRemoteEPMD(host string, port uint16) node.Registrar
- type DistHandshake
- func (dh *DistHandshake) Accept(remote net.Addr, conn lib.NetReadWriter, tls bool, cookie string) (node.HandshakeDetails, error)
- func (dh *DistHandshake) Init(nodename string, creation uint32, flags node.Flags) error
- func (dh *DistHandshake) Start(remote net.Addr, conn lib.NetReadWriter, tls bool, cookie string) (node.HandshakeDetails, error)
- func (dh *DistHandshake) Version() node.HandshakeVersion
- type HandshakeOptions
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 ¶
Types ¶
type DistHandshake ¶
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) 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 }
Click to show internal directories.
Click to hide internal directories.