client

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StartWriterThread

func StartWriterThread(filePath string, waitGroup *sync.WaitGroup) chan [2]string

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func Connect

func Connect(addr *net.UDPAddr, timeoutMs uint32, dgramSize uint32, maxRetries uint8) (*Client, error)

Connect a client to the server, execute the proper handshake, then return the client.

func (*Client) Close

func (client *Client) Close()

func (*Client) ReceiveFile

func (client *Client) ReceiveFile(outPath string, rttCallback func(int, time.Duration)) (int, int, error)

func (*Client) SendFile

func (client *Client) SendFile(filePath string, rttCallback func(int, time.Duration)) (int, int, error)

SendFile sends a file to the connected server

Jump to

Keyboard shortcuts

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