Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TunConfig ¶
type TunConfig struct { DevType water.DeviceType Address string Name string MTU string }
type TunInterface ¶
type TunInterface struct { icommon.TunnelInterfaceServer icommon.TunnelInterfaceClient // contains filtered or unexported fields }
func GetTunIface ¶
func GetTunIface(config TunConfig) TunInterface
func (TunInterface) Close ¶
func (t TunInterface) Close() error
func (TunInterface) HandleConnection ¶
func (t TunInterface) HandleConnection(conn net.Conn) error
func (TunInterface) WaitingForConnection ¶
func (t TunInterface) WaitingForConnection()
type TunInterfaceClient ¶
type TunInterfaceClient struct { TunInterface // contains filtered or unexported fields }
func GetTunIfaceClient ¶
func GetTunIfaceClient(config TunConfig, addr string, d tcommon.TunnelDialer) TunInterfaceClient
func (*TunInterfaceClient) Close ¶
func (t *TunInterfaceClient) Close()
func (TunInterfaceClient) Closed ¶
func (t TunInterfaceClient) Closed() bool
func (*TunInterfaceClient) WaitingForConnection ¶
func (t *TunInterfaceClient) WaitingForConnection()
Click to show internal directories.
Click to hide internal directories.