Player APIs (BrightScript & Ja...
...
Object Reference
Networking Objects

roNetworkHotplug

3min
this object can be used to generate events when a ronetworkconfiguration docid\ u6zceyqddlz9xdakttmjs becomes available or unavailable it will post events of type docid\ wrxooghi0xfxsynqoktnf and docid\ b2oc8vrdnory84oainkmr to the associated message port the javascript equivalent is networkhotplug docid\ neizljqnwcice75ocwkol to determine which network was attached or detached, the script needs to call getint() or getstring() on the ronetworkattached / ronetworkdetached event object these methods provide an index of the network interface that was attached or detached reconfiguring a network interface using ronetworkconfiguration may cause it to detach and attach again a dhcp address renewal may cause an ronetworkattached event, even if the ip address hasn't changed ifmessageport setport(a as object) posts messages of type ronetworkattached / ronetworkdetached to the attached message port ifuserdata setuserdata(user data as object) sets the user data that will be returned when events are raised getuserdata() as object returns the user data that has previously been set via setuserdata() it will return invalid if no data has been set