_UPNP_Connect Scol 5.x or above required
Tries to find a UPnP compliant device on network (precisely an Internet Gateway
Device) and connects to it.
This function should be called once before using any other one.
It will freeze the application during a few seconds (3-5).
Prototype :
fun [Chn] I
Return : I Returns: 1. Nil or 0 if it fails (or doesn't find anything).
Error :
- EOK if no error.
- ECHN if the channel is nil.
- ESYSOS if the Operating System doesn't support this.
- ECONN if a upnp conection already exists.
- ECROBJ if the connection can not be created. The log file should provide
some informations on the causes of the problem.
- EPLATFORM if this is not supported yet on the current platform.
- 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 !