tftpd

package
v0.0.0-...-f4fa09b Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2019 License: MIT Imports: 14 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	AllowedMode     string
	Address         string
	LogFilePath     string
	FlushInterval   int
	LogFlag         int
	TransferTimeout int
	RetryTime       int
}

Config struct for the server

type Server

type Server struct {
	Connection net.PacketConn
	Config     *Config
	// contains filtered or unexported fields
}

Server struct defining the TFTP deployment

func NewTFTPServer

func NewTFTPServer(config *Config) (*Server, error)

NewTFTPServer creates a new Server instance

func (*Server) Initialize

func (s *Server) Initialize() error

Initialize the udp server

func (*Server) Start

func (s *Server) Start()

Start the server

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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