bmpclient2

package
v0.0.0-...-56464ea Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2020 License: GPL-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenEd25519KeyAndSave

func GenEd25519KeyAndSave(password string) error

func GetKeyfile

func GetKeyfile() string

func LoadKey

func LoadKey(password string) (ed25519.PublicKey, ed25519.PrivateKey)

Types

type BMClient2

type BMClient2 struct {
	PK    ed25519.PublicKey
	Priv  ed25519.PrivateKey
	Hash  []byte
	SrvPk ed25519.PublicKey
	// contains filtered or unexported fields
}

func NewClient2

func NewClient2(serverIP net.IP, timeout int) *BMClient2

func (*BMClient2) Close

func (c *BMClient2) Close()

func (*BMClient2) GetSn

func (c *BMClient2) GetSn() []byte

func (*BMClient2) Helo

func (c *BMClient2) Helo() (err error)

func (*BMClient2) SendEnvelope

func (c *BMClient2) SendEnvelope(envelope *bmp.EnvelopeSyn) (rse *bmp.EnvelopeAck, err error)

Jump to

Keyboard shortcuts

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