upnp

package
v0.9.16 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2014 License: MIT Imports: 14 Imported by: 0

Documentation

Overview

Package upnp implements UPnP Internet Gateway upnpDevice port mappings

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IGD

type IGD struct {
	// contains filtered or unexported fields
}

func Discover

func Discover() (*IGD, error)

func (*IGD) AddPortMapping

func (n *IGD) AddPortMapping(protocol Protocol, externalPort, internalPort int, description string, timeout int) error

func (*IGD) DeletePortMapping

func (n *IGD) DeletePortMapping(protocol Protocol, externalPort int) (err error)

type Protocol

type Protocol string
const (
	TCP Protocol = "TCP"
	UDP          = "UDP"
)

Jump to

Keyboard shortcuts

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