client

package
v0.0.0-...-01d6d1d Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2022 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PrepareSend

func PrepareSend(filename string, channel int)

PrepareSend tells the server the name and size of the file it intends to share beforehand. This is important because the server needs to know how many bytes to expect and how to name the file.

func Subscribe

func Subscribe(channel int)

Subscribe clients can also subscribe/listen to a particular "channel" this function sends that kind of request to the server and reacts to responses.

Types

This section is empty.

Jump to

Keyboard shortcuts

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