filetransfer

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2024 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckForBinary

func CheckForBinary(fileInputName string)

func FileTransferLogic

func FileTransferLogic(fti *FileTransfer)

func ListenerLogic

func ListenerLogic(bindAddress string, fileName string)

func SendFile

func SendFile(fileInputName string)

func SenderLogic

func SenderLogic(senderAddress string, localFileName string)

func WriteBinaryFile

func WriteBinaryFile(fileName string)

func WriteTextFiles

func WriteTextFiles(fileName string)

Types

type FileTransfer

type FileTransfer struct {
	Port     int
	FileName string
	Listen   bool
	Send     bool
	Hostname string
}

func (*FileTransfer) FileTransferInput

func (ft *FileTransfer) FileTransferInput(fs *flag.FlagSet)

Jump to

Keyboard shortcuts

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