async

package
v0.0.0-...-cedea85 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2019 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	ReadTimeout  time.Duration
	WriteTimeout time.Duration
	LocalAddr    net.Addr
	RemoteAddr   net.Addr
	IgnoreErrors bool
	// contains filtered or unexported fields
}

Client implements an asynchronous DHCPv6 client

func NewClient

func NewClient() *Client

NewClient creates an asynchronous client

func (*Client) Close

func (c *Client) Close()

Close stops the client

func (*Client) Errors

func (c *Client) Errors() <-chan error

Errors returns a channel where runtime errors are posted

func (*Client) Open

func (c *Client) Open(bufferSize int) error

Open starts the client

func (*Client) OpenForInterface

func (c *Client) OpenForInterface(ifname string, bufferSize int) error

OpenForInterface starts the client on the specified interface, replacing client LocalAddr with a link-local address of the given interface and standard DHCP port (546).

func (*Client) Send

func (c *Client) Send(message dhcpv6.DHCPv6, modifiers ...dhcpv6.Modifier) *promise.Future

Send inserts a message to the queue to be sent asynchronously. Returns a future which resolves to response and error.

Jump to

Keyboard shortcuts

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