connection

package
v0.0.0-...-001208e Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Connection

type Connection struct {
	UUID   string
	Conn   net.Conn
	Name   string
	PubKey []byte // if nil - no handshake yet
}

func New

func New(conn net.Conn) *Connection

func (*Connection) Handshaked

func (c *Connection) Handshaked() bool

func (*Connection) UpdadeKey

func (c *Connection) UpdadeKey(pubKey []byte) error

func (*Connection) UpdateName

func (c *Connection) UpdateName()

Jump to

Keyboard shortcuts

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