Versions in this module Expand all Collapse all v1 v1.1.0 Aug 7, 2019 Changes in this version + func NewTCPHandler(fakedns, truedns net.Addr, listener TCPListener) core.TCPConnHandler + func NewUDPHandler(fakedns, truedns net.Addr, timeout time.Duration, listener UDPListener) core.UDPConnHandler + type DuplexConn interface + CloseRead func() error + CloseWrite func() error + func DialWithSplitRetry(network string, addr *net.TCPAddr, summary *TCPSocketSummary) (DuplexConn, error) + type RetryStats struct + Bytes int32 + Chunks int16 + Split int16 + Timeout bool + type TCPListener interface + OnTCPSocketClosed func(*TCPSocketSummary) + type TCPSocketSummary struct + DownloadBytes int64 + Duration int32 + Retry *RetryStats + ServerPort int16 + Synack int32 + UploadBytes int64 + type UDPListener interface + OnUDPSocketClosed func(*UDPSocketSummary) + type UDPSocketSummary struct + DownloadBytes int64 + Duration int32 + UploadBytes int64