Versions in this module Expand all Collapse all v1 v1.2.0 Nov 11, 2023 Changes in this version + func Accept(listener *net.TCPListener) (net.Conn, error) + func DialAddr(lAddr, rAddr *net.TCPAddr) (net.Conn, error) + func DialAddress(lAddress, rAddress string) (net.Conn, error) + func Listen(addr *net.TCPAddr) (*net.TCPListener, error) + func ListenAndAccept(addr *net.TCPAddr) (*net.TCPListener, net.Conn, error) + func ListenAndAcceptAddress(address string) (*net.TCPListener, net.Conn, error) + func NewCoupleTCPAddr(lAddress string, dAddress string) (*net.TCPAddr, *net.TCPAddr, error) + func NewTCP4Addr(address string) (*net.TCPAddr, error) + func NewTCP6Addr(address string) (*net.TCPAddr, error) + func NewTCPAddr(address string) (*net.TCPAddr, error) + func NewTCPAddrFromIPPort(ip string, port int, zone string) *net.TCPAddr + func Telnet(addr string, timeout time.Duration) (bool, error) + func TelnetN(addr string, times int, timeout time.Duration) (bool, error) + func TransferFromDialToDial(dAddrFrom *net.TCPAddr, dAddrTo *net.TCPAddr, keepListening bool) error + func TransferFromDialToDialAddress(lAddress string, dAddress string, keepListening bool) error + func TransferFromListenToDial(lAddr *net.TCPAddr, dAddr *net.TCPAddr, keepListening bool, ...) error + func TransferFromListenToDialAddress(lAddress string, dAddress string, keepListening bool, ...) error + func TransferFromListenToListen(lAddr *net.TCPAddr, dAddr *net.TCPAddr, keepListening bool, ...) error + func TransferFromListenToListenAddress(lAddress string, dAddress string, keepListening bool, ...) error + func TransferTCP(src net.Conn, dst net.Conn, closed bool) (chan iokit.Direction, error) + func TransferTCPDynamic(srcConnFactory iokit.ConnFactoryFunc, dstConnFactory iokit.ConnFactoryFunc, ...) (chan iokit.Direction, error) + type TCPTransferContext struct + DAddr *net.TCPAddr + DListener *net.TCPListener + KeepListening bool + LAddr *net.TCPAddr + LListener *net.TCPListener + StopChan *chan os.Signal + func BuildTransfer(lAddress string, dAddress string, keepListening bool) (*TCPTransferContext, error) + func (t TCPTransferContext) GetDListener() *net.TCPListener + func (t TCPTransferContext) GetLListener() *net.TCPListener + func (t TCPTransferContext) Stop() + func (t TCPTransferContext) TransferFromDialToDial() error + func (t TCPTransferContext) TransferFromListenToDial() error + func (t TCPTransferContext) TransferFromListenToListen() error