Documentation
¶
Index ¶
- type UDPTransport
- func (udpt *UDPTransport) Listen(physConn *net.UDPConn, tapConn *mnet_if.Interface, peerAddr *net.UDPAddr, ...)
- func (udpt *UDPTransport) ListenAndTransmit(localIpAddr string, localPort string, remoteIpAddr string, remotePort string, ...) (net.Conn, error)
- func (udpt *UDPTransport) Transmit(physConn *net.UDPConn, tapConn *mnet_if.Interface, peerAddr *net.UDPAddr, ...)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UDPTransport ¶
type UDPTransport struct{}
func GetUDPTransport ¶
func GetUDPTransport() *UDPTransport
func (*UDPTransport) Listen ¶
func (udpt *UDPTransport) Listen(physConn *net.UDPConn, tapConn *mnet_if.Interface, peerAddr *net.UDPAddr, key []byte, dataKey *[]byte, isSecure bool, peerDiscoveryChannel chan net.UDPAddr, isTun bool, signalChannel chan string)
To forward data from physical interface to tap/tun/virtual link interface
func (*UDPTransport) ListenAndTransmit ¶
func (*UDPTransport) Transmit ¶
func (udpt *UDPTransport) Transmit(physConn *net.UDPConn, tapConn *mnet_if.Interface, peerAddr *net.UDPAddr, key []byte, dataKey *[]byte, isSecure bool, peerDiscoveryChannel chan net.UDPAddr, isTun bool, signalChannel chan string)
To forward data from tap/tun/virtual link interface to physical interface
Click to show internal directories.
Click to hide internal directories.