proxy

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2017 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DropCallback

type DropCallback func(protocol.PacketNumber) bool

DropCallback is a callback that determines which packet gets dropped

type UDPProxy

type UDPProxy struct {
	// contains filtered or unexported fields
}

UDPProxy is a UDP proxy

func NewUDPProxy

func NewUDPProxy(proxyPort int, serverAddress string, serverPort int, dropIncomingPacket, dropOutgoingPacket DropCallback, rttMin time.Duration, rttMax time.Duration) (*UDPProxy, error)

NewUDPProxy creates a new UDP proxy

func (*UDPProxy) Stop

func (p *UDPProxy) Stop()

Stop stops the UDP Proxy

Jump to

Keyboard shortcuts

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