sender

package
v1.2.3 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2023 License: MIT Imports: 19 Imported by: 0

Documentation

Overview

server.go defines the sender webserver for the Portal file transfer

Index

Constants

View Source
const MAX_CHUNK_BYTES = 1e6
View Source
const MAX_SEND_CHUNKS = 2e8

Variables

This section is empty.

Functions

func ConnectRendezvous

func ConnectRendezvous(ctx context.Context, addr string) (conn.Rendezvous, string, error)

ConnectRendezvous creates a connection with the rendezvous server and acquires a password associated with the connection

func SecureConnection

func SecureConnection(ctx context.Context, rc conn.Rendezvous, password string) (conn.Transfer, error)

SecureConnection does the cryptographic handshake in order to resolve a secure channel to do file transfer over.

func Transfer

func Transfer(ctx context.Context, tc conn.Transfer, payload io.Reader, payloadSize int64, msgs ...chan interface{}) error

Transfer performs the file transfer, either directly or using the Rendezvous server as a relay.

Types

This section is empty.

Jump to

Keyboard shortcuts

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