6.1-roNetworkHotplug

ON THIS PAGE


This object can be used to generate events when a network interface becomes available or unavailable. It will post events of the type roNetworkAttached and roNetworkDetached to the associated message port.

To determine which network was attached or detached, the script needs to call roNetworkAttached.GetInt or roNetworkDetached.GetInt. These methods provide an index of the network interface that was attached or detached.

Note

Reconfiguring a network interface using roNetworkConfiguration may cause it to detach and attach again.

ifMessagePort

SetPort(a As Object)

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.