miniupnpc/upnpcommands.h: explain UPNP error codes
This commit is contained in:
parent
8f0e7f8ace
commit
7fb5fe5dcb
|
@ -1,7 +1,7 @@
|
||||||
/* $Id: upnpcommands.h,v 1.26 2014/01/31 13:18:26 nanard Exp $ */
|
/* $Id: upnpcommands.h,v 1.27 2014/02/17 15:38:26 nanard Exp $ */
|
||||||
/* Miniupnp project : http://miniupnp.free.fr/
|
/* Miniupnp project : http://miniupnp.free.fr/
|
||||||
* Author : Thomas Bernard
|
* Author : Thomas Bernard
|
||||||
* Copyright (c) 2005-2011 Thomas Bernard
|
* Copyright (c) 2005-2014 Thomas Bernard
|
||||||
* This software is subject to the conditions detailed in the
|
* This software is subject to the conditions detailed in the
|
||||||
* LICENCE file provided within this distribution */
|
* LICENCE file provided within this distribution */
|
||||||
#ifndef UPNPCOMMANDS_H_INCLUDED
|
#ifndef UPNPCOMMANDS_H_INCLUDED
|
||||||
|
@ -100,6 +100,8 @@ UPNP_GetLinkLayerMaxBitRates(const char* controlURL,
|
||||||
* errorCode errorDescription (short) - Description (long)
|
* errorCode errorDescription (short) - Description (long)
|
||||||
* 402 Invalid Args - See UPnP Device Architecture section on Control.
|
* 402 Invalid Args - See UPnP Device Architecture section on Control.
|
||||||
* 501 Action Failed - See UPnP Device Architecture section on Control.
|
* 501 Action Failed - See UPnP Device Architecture section on Control.
|
||||||
|
* 606 Action not authorized - The action requested REQUIRES authorization and
|
||||||
|
* the sender was not authorized.
|
||||||
* 715 WildCardNotPermittedInSrcIP - The source IP address cannot be
|
* 715 WildCardNotPermittedInSrcIP - The source IP address cannot be
|
||||||
* wild-carded
|
* wild-carded
|
||||||
* 716 WildCardNotPermittedInExtPort - The external port cannot be wild-carded
|
* 716 WildCardNotPermittedInExtPort - The external port cannot be wild-carded
|
||||||
|
@ -112,7 +114,13 @@ UPNP_GetLinkLayerMaxBitRates(const char* controlURL,
|
||||||
* 726 RemoteHostOnlySupportsWildcard - RemoteHost must be a wildcard
|
* 726 RemoteHostOnlySupportsWildcard - RemoteHost must be a wildcard
|
||||||
* and cannot be a specific IP address or DNS name
|
* and cannot be a specific IP address or DNS name
|
||||||
* 727 ExternalPortOnlySupportsWildcard - ExternalPort must be a wildcard and
|
* 727 ExternalPortOnlySupportsWildcard - ExternalPort must be a wildcard and
|
||||||
* cannot be a specific port value */
|
* cannot be a specific port value
|
||||||
|
* 728 NoPortMapsAvailable - There are not enough free ports available to
|
||||||
|
* complete port mapping.
|
||||||
|
* 729 ConflictWithOtherMechanisms - Attempted port mapping is not allowed
|
||||||
|
* due to conflict with other mechanisms.
|
||||||
|
* 732 WildCardNotPermittedInIntPort - The internal port cannot be wild-carded
|
||||||
|
*/
|
||||||
LIBSPEC int
|
LIBSPEC int
|
||||||
UPNP_AddPortMapping(const char * controlURL, const char * servicetype,
|
UPNP_AddPortMapping(const char * controlURL, const char * servicetype,
|
||||||
const char * extPort,
|
const char * extPort,
|
||||||
|
@ -132,6 +140,8 @@ UPNP_AddPortMapping(const char * controlURL, const char * servicetype,
|
||||||
*
|
*
|
||||||
* List of possible UPnP errors for DeletePortMapping :
|
* List of possible UPnP errors for DeletePortMapping :
|
||||||
* 402 Invalid Args - See UPnP Device Architecture section on Control.
|
* 402 Invalid Args - See UPnP Device Architecture section on Control.
|
||||||
|
* 606 Action not authorized - The action requested REQUIRES authorization
|
||||||
|
* and the sender was not authorized.
|
||||||
* 714 NoSuchEntryInArray - The specified value does not exist in the array */
|
* 714 NoSuchEntryInArray - The specified value does not exist in the array */
|
||||||
LIBSPEC int
|
LIBSPEC int
|
||||||
UPNP_DeletePortMapping(const char * controlURL, const char * servicetype,
|
UPNP_DeletePortMapping(const char * controlURL, const char * servicetype,
|
||||||
|
@ -159,7 +169,15 @@ UPNP_GetPortMappingNumberOfEntries(const char* controlURL,
|
||||||
*
|
*
|
||||||
* return value :
|
* return value :
|
||||||
* UPNPCOMMAND_SUCCESS, UPNPCOMMAND_INVALID_ARGS, UPNPCOMMAND_UNKNOWN_ERROR
|
* UPNPCOMMAND_SUCCESS, UPNPCOMMAND_INVALID_ARGS, UPNPCOMMAND_UNKNOWN_ERROR
|
||||||
* or a UPnP Error Code. */
|
* or a UPnP Error Code.
|
||||||
|
*
|
||||||
|
* List of possible UPnP errors for _GetSpecificPortMappingEntry :
|
||||||
|
* 402 Invalid Args - See UPnP Device Architecture section on Control.
|
||||||
|
* 501 Action Failed - See UPnP Device Architecture section on Control.
|
||||||
|
* 606 Action not authorized - The action requested REQUIRES authorization
|
||||||
|
* and the sender was not authorized.
|
||||||
|
* 714 NoSuchEntryInArray - The specified value does not exist in the array.
|
||||||
|
*/
|
||||||
LIBSPEC int
|
LIBSPEC int
|
||||||
UPNP_GetSpecificPortMappingEntry(const char * controlURL,
|
UPNP_GetSpecificPortMappingEntry(const char * controlURL,
|
||||||
const char * servicetype,
|
const char * servicetype,
|
||||||
|
@ -190,6 +208,8 @@ UPNP_GetSpecificPortMappingEntry(const char * controlURL,
|
||||||
*
|
*
|
||||||
* Possible UPNP Error codes :
|
* Possible UPNP Error codes :
|
||||||
* 402 Invalid Args - See UPnP Device Architecture section on Control.
|
* 402 Invalid Args - See UPnP Device Architecture section on Control.
|
||||||
|
* 606 Action not authorized - The action requested REQUIRES authorization
|
||||||
|
* and the sender was not authorized.
|
||||||
* 713 SpecifiedArrayIndexInvalid - The specified array index is out of bounds
|
* 713 SpecifiedArrayIndexInvalid - The specified array index is out of bounds
|
||||||
*/
|
*/
|
||||||
LIBSPEC int
|
LIBSPEC int
|
||||||
|
|
Loading…
Reference in New Issue