Roku Object Reference - imaginArt
Roku Object Reference - imaginArt
Roku Object Reference - imaginArt
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
oNetworkConfiguration ()<br />
<strong>Object</strong> creation:<br />
• Create<strong>Object</strong>("roNetworkConfiguration", 0)<br />
The ifNetworkConfiguration interface provides (methods do not take effect until Apply is called):<br />
• SetDHCP(key As String, value As <strong>Object</strong>) As Void<br />
o Enable DHCP. Disables all other settings.<br />
• SetIP4Address(ip As String) As Boolean<br />
• SetIP4Netmask(netmask As String) As Boolean<br />
• SetIP4Broadcast(broadcast As String) As Boolean<br />
• SetIP4Gateway(gateway As String) As Boolean<br />
o Set IPv4 interface configuration. All values must be set – no cleverness is applied (unlike<br />
ifconfig shell command). Parameter is a string dotted decimal quad (i.e. “192.168.1.2” or<br />
similar). Returns true on success.<br />
o Example<br />
nc.SetIP4Address("192.168.1.42")<br />
nc.SetIP4Netmask("255.255.255.0")<br />
nc.SetIP4Broadcast("192.168.1.255")<br />
nc.SetIP4Gateway("192.168.1.1")<br />
• SetDomain(domain As String) As Boolean<br />
o Set the device domain name. This will be appended to names to fully qualify them. It is not<br />
necessary to call this. Returns true on success.<br />
o Example<br />
nc.SetDomain("roku.com")<br />
• AddDNSServer(server As String) As Void<br />
o When the object is created there are no DNS servers, this adds another server to the list. There<br />
is currently a maximum of three but adding more will not fail. Returns true on success. There<br />
is no way to remove all the servers, just re-create the object.<br />
• GetFailureReason() As String<br />
o Give more information when a member function has returned false.<br />
• Apply() As Boolean<br />
o Apply the requested changes to the network interface. This may take several seconds to<br />
complete.<br />
• SetTimeServer(time_server As String) As Boolean<br />
o The default time server is “time.rokulabs.com”. The use of NTP can be disabled by calling<br />
SetTimerServer(“”).<br />
55