Versions in this module Expand all Collapse all v0 v0.2.0 Feb 4, 2016 v0.1.0 Feb 4, 2016 Changes in this version + const DefaultServerHost + const DefaultServerPort + const DefaultSoftwareName + type Client struct + LocalAddr string + LocalPort int16 + func NewClient() *Client + func (c *Client) Discover() (NATType, *Host, error) + func (c *Client) ServerAddr() string + func (c *Client) SetServerAddr(address string) + func (c *Client) SetServerHost(host string, port int) error + func (c *Client) SetSoftwareName(name string) + func (c *Client) SoftwareName() string + type Host struct + func (h *Host) Family() uint16 + func (h *Host) IP() string + func (h *Host) Port() uint16 + func (h *Host) TransportAddr() string + type NATType int + const NAT_BLOCKED + const NAT_ERROR + const NAT_FULL + const NAT_NONE + const NAT_PORT_RESTRICTED + const NAT_RESTRICTED + const NAT_SYMETRIC + const NAT_SYMETRIC_UDP_FIREWALL + const NAT_UNKNOWN