kist

package
v0.0.0-...-cceba45 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2014 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Overview

Package kist implements the link capacity estimation algorithm from "Never Been KIST: Tor’s Congestion Management Blossoms with Kernel-Informed Socket Transport".

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EstimateWriteCapacity

func EstimateWriteCapacity(f *os.File) (int, error)

EstimateWriteCapacity attempts to figure out how much can be written to a given os.File without blocking. It is assumed that the os.File is actually a TCP socket (since the algorithm queries TCP_INFO), but since the Go runtime doesn't deem users worthy to get at the raw file descriptor, an os.File is used instead.

Types

This section is empty.

Jump to

Keyboard shortcuts

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