client

package
v0.0.0-...-26a6e99 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2018 License: MIT Imports: 6 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 {
	// contains filtered or unexported fields
}

Client is a STUN server client

func NewClient

func NewClient(listeningAddress string) (*Client, error)

NewClient returns a new Client instance. listeningAddress is the address and port to listen on, default "0.0.0.0:0"

func (*Client) SendSTUNRequest

func (c *Client) SendSTUNRequest(serverIP net.IP, serverPort int) (interface{}, error)

SendSTUNRequest sends a new STUN request to the serverIP with serverPort

Jump to

Keyboard shortcuts

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