net

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2026 License: AGPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateChatRequest

func CreateChatRequest(chatID int, reqType prot.RequestWhat, userID int, messageContent string, messageID int) []byte

func HandleServerCommunication

func HandleServerCommunication(conn net.Conn, decoder *json.Decoder, gui *gui.GUI, u *user.UserCache, opt *options.Options, connDone chan bool)

func StartNet

func StartNet(gui *gui.GUI, u *user.UserCache, opt *options.Options)

StartNet connects to the server, registers the selected username, and then starts the chat request/response loops.

Types

This section is empty.

Jump to

Keyboard shortcuts

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