UPNP

Inherits: RefCounted < Object

There is currently no description for this class. Please help us by contributing one!

Properties

bool

discover_ipv6

false

int

discover_local_port

0

String

discover_multicast_if

""

Methods

void

add_device ( UPNPDevice device )

int

add_port_mapping ( int port, int port_internal=0, String desc=””, String proto=”UDP”, int duration=0 ) const

void

clear_devices ( )

int

delete_port_mapping ( int port, String proto=”UDP” ) const

int

discover ( int timeout=2000, int ttl=2, String device_filter=”InternetGatewayDevice” )

UPNPDevice

get_device ( int index ) const

int

get_device_count ( ) const

UPNPDevice

get_gateway ( ) const

String

query_external_address ( ) const

void

remove_device ( int index )

void

set_device ( int index, UPNPDevice device )


Enumerations

enum UPNPResult:

UPNPResult UPNP_RESULT_SUCCESS = 0

There is currently no description for this enum. Please help us by contributing one!

UPNPResult UPNP_RESULT_NOT_AUTHORIZED = 1

There is currently no description for this enum. Please help us by contributing one!

UPNPResult UPNP_RESULT_PORT_MAPPING_NOT_FOUND = 2

There is currently no description for this enum. Please help us by contributing one!

UPNPResult UPNP_RESULT_INCONSISTENT_PARAMETERS = 3

There is currently no description for this enum. Please help us by contributing one!

UPNPResult UPNP_RESULT_NO_SUCH_ENTRY_IN_ARRAY = 4

There is currently no description for this enum. Please help us by contributing one!

UPNPResult UPNP_RESULT_ACTION_FAILED = 5

There is currently no description for this enum. Please help us by contributing one!

UPNPResult UPNP_RESULT_SRC_IP_WILDCARD_NOT_PERMITTED = 6

There is currently no description for this enum. Please help us by contributing one!

UPNPResult UPNP_RESULT_EXT_PORT_WILDCARD_NOT_PERMITTED = 7

There is currently no description for this enum. Please help us by contributing one!

UPNPResult UPNP_RESULT_INT_PORT_WILDCARD_NOT_PERMITTED = 8

There is currently no description for this enum. Please help us by contributing one!

UPNPResult UPNP_RESULT_REMOTE_HOST_MUST_BE_WILDCARD = 9

There is currently no description for this enum. Please help us by contributing one!

UPNPResult UPNP_RESULT_EXT_PORT_MUST_BE_WILDCARD = 10

There is currently no description for this enum. Please help us by contributing one!

UPNPResult UPNP_RESULT_NO_PORT_MAPS_AVAILABLE = 11

There is currently no description for this enum. Please help us by contributing one!

UPNPResult UPNP_RESULT_CONFLICT_WITH_OTHER_MECHANISM = 12

There is currently no description for this enum. Please help us by contributing one!

UPNPResult UPNP_RESULT_CONFLICT_WITH_OTHER_MAPPING = 13

There is currently no description for this enum. Please help us by contributing one!

UPNPResult UPNP_RESULT_SAME_PORT_VALUES_REQUIRED = 14

There is currently no description for this enum. Please help us by contributing one!

UPNPResult UPNP_RESULT_ONLY_PERMANENT_LEASE_SUPPORTED = 15

There is currently no description for this enum. Please help us by contributing one!

UPNPResult UPNP_RESULT_INVALID_GATEWAY = 16

There is currently no description for this enum. Please help us by contributing one!

UPNPResult UPNP_RESULT_INVALID_PORT = 17

There is currently no description for this enum. Please help us by contributing one!

UPNPResult UPNP_RESULT_INVALID_PROTOCOL = 18

There is currently no description for this enum. Please help us by contributing one!

UPNPResult UPNP_RESULT_INVALID_DURATION = 19

There is currently no description for this enum. Please help us by contributing one!

UPNPResult UPNP_RESULT_INVALID_ARGS = 20

There is currently no description for this enum. Please help us by contributing one!

UPNPResult UPNP_RESULT_INVALID_RESPONSE = 21

There is currently no description for this enum. Please help us by contributing one!

UPNPResult UPNP_RESULT_INVALID_PARAM = 22

There is currently no description for this enum. Please help us by contributing one!

UPNPResult UPNP_RESULT_HTTP_ERROR = 23

There is currently no description for this enum. Please help us by contributing one!

UPNPResult UPNP_RESULT_SOCKET_ERROR = 24

There is currently no description for this enum. Please help us by contributing one!

UPNPResult UPNP_RESULT_MEM_ALLOC_ERROR = 25

There is currently no description for this enum. Please help us by contributing one!

UPNPResult UPNP_RESULT_NO_GATEWAY = 26

There is currently no description for this enum. Please help us by contributing one!

UPNPResult UPNP_RESULT_NO_DEVICES = 27

There is currently no description for this enum. Please help us by contributing one!

UPNPResult UPNP_RESULT_UNKNOWN_ERROR = 28

There is currently no description for this enum. Please help us by contributing one!


Property Descriptions

bool discover_ipv6 = false

  • void set_discover_ipv6 ( bool value )

  • bool is_discover_ipv6 ( )

There is currently no description for this property. Please help us by contributing one!


int discover_local_port = 0

  • void set_discover_local_port ( int value )

  • int get_discover_local_port ( )

There is currently no description for this property. Please help us by contributing one!


String discover_multicast_if = ""

  • void set_discover_multicast_if ( String value )

  • String get_discover_multicast_if ( )

There is currently no description for this property. Please help us by contributing one!


Method Descriptions

void add_device ( UPNPDevice device )

There is currently no description for this method. Please help us by contributing one!


int add_port_mapping ( int port, int port_internal=0, String desc=””, String proto=”UDP”, int duration=0 ) const

There is currently no description for this method. Please help us by contributing one!


void clear_devices ( )

There is currently no description for this method. Please help us by contributing one!


int delete_port_mapping ( int port, String proto=”UDP” ) const

There is currently no description for this method. Please help us by contributing one!


int discover ( int timeout=2000, int ttl=2, String device_filter=”InternetGatewayDevice” )

There is currently no description for this method. Please help us by contributing one!


UPNPDevice get_device ( int index ) const

There is currently no description for this method. Please help us by contributing one!


int get_device_count ( ) const

There is currently no description for this method. Please help us by contributing one!


UPNPDevice get_gateway ( ) const

There is currently no description for this method. Please help us by contributing one!


String query_external_address ( ) const

There is currently no description for this method. Please help us by contributing one!


void remove_device ( int index )

There is currently no description for this method. Please help us by contributing one!


void set_device ( int index, UPNPDevice device )

There is currently no description for this method. Please help us by contributing one!