base

package
v0.0.0-...-6af2dc9 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2021 License: MIT Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	NodeStore node_store.Store
	ConnStore conn_store.Store
	AesStore  aes_store.Store
	DnsStore  dns_store.Store

	SignalClient signal.Client

	State types.JoinPayloadNode
	IP    *string

	Config  *configure.Config
	Private *ecies.PrivateKey

	Network network.NetworkInterface

	StartTime int64
}

func NewClient

func NewClient(config *configure.Config) *Client

func (*Client) HandlePacket

func (c *Client) HandlePacket(pc *packet.PacketConstructor, conn net.Conn, addr *net.UDPAddr, isUDP bool, isRelayed bool)

func (*Client) ProcessDevice

func (c *Client) ProcessDevice(dev network.Device)

func (*Client) ProcessSignal

func (c *Client) ProcessSignal()

func (*Client) Stop

func (c *Client) Stop()

Jump to

Keyboard shortcuts

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