client

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2024 License: AGPL-3.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EasyConnectClient

type EasyConnectClient struct {
	// contains filtered or unexported fields
}

func NewEasyConnectClient

func NewEasyConnectClient(server, username, password, twfID string, testMultiLine, parseResource bool) *EasyConnectClient

func (*EasyConnectClient) DNSResource

func (c *EasyConnectClient) DNSResource() (map[string]net.IP, error)

func (*EasyConnectClient) DomainResource

func (c *EasyConnectClient) DomainResource() (map[string]bool, error)

func (*EasyConnectClient) IP

func (c *EasyConnectClient) IP() (net.IP, error)

func (*EasyConnectClient) IPResource

func (c *EasyConnectClient) IPResource() (*netaddr.IPSet, error)

func (*EasyConnectClient) RecvConn

func (c *EasyConnectClient) RecvConn() (*tls.UConn, error)

RecvConn create a special TLS connection to receive data from the VPN server

func (*EasyConnectClient) SendConn

func (c *EasyConnectClient) SendConn() (*tls.UConn, error)

SendConn create a special TLS connection to send data to the VPN server

func (*EasyConnectClient) Setup

func (c *EasyConnectClient) Setup() error

type RvpnConn

type RvpnConn struct {
	// contains filtered or unexported fields
}

func NewRvpnConn

func NewRvpnConn(ec *EasyConnectClient) (*RvpnConn, error)

func (*RvpnConn) Close

func (r *RvpnConn) Close() error

func (*RvpnConn) Read

func (r *RvpnConn) Read(p []byte) (n int, err error)

try best to read, if return err!=nil, please panic

func (*RvpnConn) Write

func (r *RvpnConn) Write(p []byte) (n int, err error)

try best to write, if return err!=nil, please panic

Jump to

Keyboard shortcuts

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