ping

package
v0.0.0-...-f747631 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2021 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckLatency

func CheckLatency(ps Settings)

CheckLatency sends out a ping every second to the server to determine the system latency. This Function is typically executed as a goroutine in client applications

func EchoPing

func EchoPing(ps Settings)

EchoPing receives a Ping Request and sends it back (Pong). This Function is typically executed as a goroutine on server applications

Types

type Settings

type Settings struct {
	ToWireCh  chan comms.IOMsg
	PongCh    chan []byte
	PingCh    chan []byte
	PingTopic string
	PongTopic string
	UserID    string
	WaitGroup *sync.WaitGroup
	Events    *pubsub.PubSub
}

Jump to

Keyboard shortcuts

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