server

package
v0.0.0-...-05217b6 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2018 License: LGPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const VersionBugfix = 2
View Source
const VersionMajor = 0
View Source
const VersionMinor = 1

Variables

Functions

This section is empty.

Types

type New

type New struct {
	IP               net.IP
	Port             uint16
	PrivateKey       *rsa.PrivateKey
	PublicKey        *rsa.PublicKey
	ExtensionScripts extensionScripts.Scripts
	FirewallState    *firewalltracker.State
	Replay           *ReplayDetect
}

func (*New) Receive

func (n *New) Receive() error

type ReplayDetect

type ReplayDetect struct {
	HashedPackets map[string]bool
	// contains filtered or unexported fields
}

func (*ReplayDetect) Check

func (rd *ReplayDetect) Check(packet []byte) error

Checks if the packet has already been sent by taking the SHA-256 hash of the packet and comparing it with all the received packets.

func (*ReplayDetect) Setup

func (rd *ReplayDetect) Setup()

Jump to

Keyboard shortcuts

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