client

package
v0.0.0-...-0172ae5 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2017 License: MIT Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	sync.Mutex
	Name     string
	Password string
	MAC      data.MACAddr

	IP           data.IPAddr
	Gateway      data.IPAddr
	Network      data.IPAddr
	SubnetMask   data.IPAddr
	OtherClients map[string]*ClientInfo
	// contains filtered or unexported fields
}

func New

func New(name, password, nw, addr string) (*Client, error)

func (*Client) CreateGroup

func (c *Client) CreateGroup(groupName, password, network string) error

func (*Client) DoHandshake

func (c *Client) DoHandshake() error

func (*Client) IsInGroup

func (c *Client) IsInGroup() bool

func (*Client) JoinGroup

func (c *Client) JoinGroup(groupName, password string) error

func (*Client) LeaveGroup

func (c *Client) LeaveGroup() error

func (*Client) ListGroups

func (c *Client) ListGroups() ([]string, error)

type ClientInfo

type ClientInfo struct {
	Name string
	IP   string
}

Jump to

Keyboard shortcuts

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