Versions in this module Expand all Collapse all v0 v0.1.1 Aug 3, 2026 Changes in this version + const EthernetDefaultMTU + const EthernetJumboFrameMTU + const IPMaximumMTU + const IPv4HeaderSize + const IPv6HeaderSize + const TCPHeaderSize + const UDPHeaderSize + func NewConn(c net.Conn, p StreamProfile) net.Conn + func NewPacketConn(c net.PacketConn, p PacketProfile) net.PacketConn + type Bandwidth interface + Limit func() uint64 + type Conn struct + func (c *Conn) Close() error + func (c *Conn) SetDeadline(t time.Time) error + func (c *Conn) SetWriteDeadline(t time.Time) error + func (c *Conn) Write(b []byte) (n int, err error) + type Fault interface + ShouldClose func() bool + type Jitter interface + Duration func() time.Duration + type Latency interface + Duration func() time.Duration + type LinkProfile struct + Bandwidth Bandwidth + Jitter Jitter + Latency Latency + type Loss interface + Drop func() bool + type PacketConn struct + func (c *PacketConn) Close() error + func (c *PacketConn) SetDeadline(t time.Time) error + func (c *PacketConn) SetWriteDeadline(t time.Time) error + func (c *PacketConn) WriteTo(p []byte, addr net.Addr) (n int, err error) + type PacketProfile struct + Bandwidth Bandwidth + Jitter Jitter + Latency Latency + Loss Loss + MTU uint + type StreamProfile struct + Bandwidth Bandwidth + Fault Fault + Jitter Jitter + Latency Latency + MTU uint