udp

package
v0.0.0-...-d0f1447 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 4, 2019 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UdpDialer

type UdpDialer struct {
	tcommon.TunnelDialer
	// contains filtered or unexported fields
}

func GetUdpDialer

func GetUdpDialer() UdpDialer

func (UdpDialer) Dial

func (d UdpDialer) Dial(network, addr string) (c net.Conn, err error)

func (UdpDialer) Protocol

func (d UdpDialer) Protocol() tcommon.TunnelProtocol

type UdpServer

type UdpServer struct {
	tcommon.TunnelServerCommon
	// contains filtered or unexported fields
}

func StartUdpServer

func StartUdpServer(address string) (UdpServer, error)

func (UdpServer) Close

func (s UdpServer) Close() error

func (UdpServer) SetServer

func (s UdpServer) SetServer(ss icommon.TunnelInterfaceServer)

func (UdpServer) WaitingForConnection

func (s UdpServer) WaitingForConnection()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL