Documentation ¶
Index ¶
- 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
- 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
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DialAddress ¶
laddress: local-address raddress: remote-address
func ListenAndAccept ¶
func ListenAndAcceptAddress ¶
func NewCoupleTCPAddr ¶
func NewTCPAddrFromIPPort ¶
func TransferFromDialToDial ¶
func TransferFromListenToDialAddress ¶
func TransferFromListenToDialAddress(lAddress string, dAddress string, keepListening bool, output *TCPTransferContext) error
laddress: local-address, listen-address daddress: dial-address, destination-address
func TransferFromListenToListenAddress ¶
func TransferFromListenToListenAddress(lAddress string, dAddress string, keepListening bool, output *TCPTransferContext) error
func TransferTCP ¶
func TransferTCPDynamic ¶
func TransferTCPDynamic(srcConnFactory iokit.ConnFactoryFunc, dstConnFactory iokit.ConnFactoryFunc, closed bool) (chan iokit.Direction, error)
Types ¶
type TCPTransferContext ¶
type TCPTransferContext struct { LAddr *net.TCPAddr DAddr *net.TCPAddr KeepListening bool LListener *net.TCPListener DListener *net.TCPListener StopChan *chan os.Signal }
func BuildTransfer ¶
func BuildTransfer(lAddress string, dAddress string, keepListening bool) (*TCPTransferContext, error)
func (TCPTransferContext) GetDListener ¶
func (t TCPTransferContext) GetDListener() *net.TCPListener
func (TCPTransferContext) GetLListener ¶
func (t TCPTransferContext) GetLListener() *net.TCPListener
func (TCPTransferContext) Stop ¶
func (t TCPTransferContext) Stop()
func (TCPTransferContext) TransferFromDialToDial ¶
func (t TCPTransferContext) TransferFromDialToDial() error
func (TCPTransferContext) TransferFromListenToDial ¶
func (t TCPTransferContext) TransferFromListenToDial() error
func (TCPTransferContext) TransferFromListenToListen ¶
func (t TCPTransferContext) TransferFromListenToListen() error
Click to show internal directories.
Click to hide internal directories.