_UPNP_OpenPort Scol 5.x or above required
Opens a port on the Internet Gateway Device.
Prototype :
fun [S S I I I] I
Return : I Port number if successful, nil if it fails.
Error :
- EOK if no error.
- EARGNIL if the "Name" is nil.
- EADDRESS if the "Address" is nil.
- ERANGE if the port number is out of range.
- EFLAG if the protocole is incorrect.
- EARG if the mode is incorrect.
- ENET if an error occurs in the firewall.
- ECONN if the connection fails to the device.
- ENOFOUND if the connection is not initialized (see _UPNP_Connect).
- EPLATFORM if the current platform is not yet supported.
- EVM if a memory error occurs. The VM will exit and more informations
could be found in the log file (if activated in the debug mode level).
See also :
Example :
Note
Warning : this function is defined on MS Windows Scol version only !