client

package
v0.0.0-...-a4e0618 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2017 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Start

func Start(localAddr string, serverAddr string, password string)

Types

type Client

type Client struct {
	Conn       net.Conn
	AuthMethod byte
	Password   string
}

func NewClient

func NewClient(conn net.Conn, password string) *Client

func (*Client) AuthSuccess

func (client *Client) AuthSuccess() error

func (*Client) GetSupportAuthMethods

func (client *Client) GetSupportAuthMethods() (methods []byte, err error)

func (*Client) SetAuthMethod

func (client *Client) SetAuthMethod(method byte) error

Jump to

Keyboard shortcuts

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