nack

command
v0.1.50 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2026 License: MIT Imports: 8 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

nack

nack demonstrates how to send RTP packets over a connection that both generates and handles NACKs

Instructions

run main.go
go run main.go

You will then see output like

$ go run main.go
2020/12/16 00:27:54 Received RTP
2020/12/16 00:27:54 Received RTP
2020/12/16 00:27:54 Received RTP
2020/12/16 00:27:54 Received RTP
2020/12/16 00:27:54 Received RTP
2020/12/16 00:27:55 Received RTP
2020/12/16 00:27:55 Received NACK
2020/12/16 00:27:55 Received RTP
2020/12/16 00:27:55 Received RTP
2020/12/16 00:27:55 Received RTP
2020/12/16 00:27:55 Received RTP
2020/12/16 00:27:56 Received RTP
2020/12/16 00:27:56 Received NACK
2020/12/16 00:27:56 Received RTP
2020/12/16 00:27:56 Received NACK
2020/12/16 00:27:56 Received RTP
2020/12/16 00:27:56 Received RTP
2020/12/16 00:27:56 Received RTP
2020/12/16 00:27:57 Received RTP
2020/12/16 00:27:57 Received RTP
2020/12/16 00:27:57 Received RTP
2020/12/16 00:27:58 Received RTP
2020/12/16 00:27:58 Received NACK
2020/12/16 00:27:58 Received RTP
2020/12/16 00:27:58 Received RTP
2020/12/16 00:27:58 Received RTP
2020/12/16 00:27:58 Received NACK
2020/12/16 00:27:58 Received RTP
2020/12/16 00:27:58 Received RTP
Introduce loss

You will not see much loss on loopback by default. To introduce 15% loss you can do

$ iptables -A INPUT -m statistic --mode random --probability 0.15 -p udp -j DROP

Documentation

Overview

Package demonstrates how to use the NACK interceptor

Jump to

Keyboard shortcuts

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