Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TCPForwarder ¶
type TCPForwarder struct {
// contains filtered or unexported fields
}
TCPForwarder listens on a local TCP address and forwards connections to a target address.
func NewTCPForwarder ¶
func NewTCPForwarder(listenAddr, targetAddr string) *TCPForwarder
NewTCPForwarder creates a new TCPForwarder.
type UDPForwarder ¶
type UDPForwarder struct {
// contains filtered or unexported fields
}
UDPForwarder listens on a local UDP address and forwards datagrams to a target address.
func NewUDPForwarder ¶
func NewUDPForwarder(listenAddr, targetAddr string) *UDPForwarder
NewUDPForwarder creates a new UDPForwarder.
Click to show internal directories.
Click to hide internal directories.