disorder

package
v0.0.0-...-e577aca Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewStreamDialer

func NewStreamDialer(dialer transport.StreamDialer, disorderPacketN int) (transport.StreamDialer, error)

NewStreamDialer creates a transport.StreamDialer. It works like this: * Wait for disorderPacketN'th call to Write. All Write requests before and after the target packet are written normally. * Send the disorderPacketN'th packet with TTL == 1. * This packet is dropped somewhere in the network and never reaches the server. * TTL is restored. * The next part of data is sent normally. * Server notices the lost fragment and requests re-transmission of lost packet.

func NewWriter

func NewWriter(conn io.Writer, tcpOptions sockopt.TCPOptions, runAtPacketN int) io.Writer

Types

This section is empty.

Jump to

Keyboard shortcuts

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