Versions in this module Expand all Collapse all v1 v1.9.2 Jan 19, 2018 v1.9.1 Jan 8, 2018 v1.9.0 Jan 2, 2018 v1.8.2 Dec 13, 2017 v1.8.0 Nov 21, 2017 v1.7.5 Dec 18, 2017 v1.7.4 Dec 4, 2017 v1.7.3 Nov 14, 2017 v1.7.2 Nov 3, 2017 v1.7.1 Oct 25, 2017 v1.7.0 Oct 11, 2017 Changes in this version + var LAN = Network + var Local = Network + var Longhaul = Network + var WAN = Network v1.6.0 Aug 30, 2017 v1.5.2 Aug 14, 2017 v1.5.1 Jul 27, 2017 v1.5.0 Jul 19, 2017 Changes in this version + type ContextDialer func(ctx context.Context, network, address string) (net.Conn, error) + type Dialer func(network, address string) (net.Conn, error) + type Network struct + Kbps int + Latency time.Duration + MTU int + func (n *Network) Conn(c net.Conn) (net.Conn, error) + func (n *Network) ContextDialer(d ContextDialer) ContextDialer + func (n *Network) Dialer(d Dialer) Dialer + func (n *Network) Listener(l net.Listener) net.Listener + func (n *Network) TimeoutDialer(d TimeoutDialer) TimeoutDialer + type TimeoutDialer func(network, address string, timeout time.Duration) (net.Conn, error)