Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

The roSocketAddress is used by the roStreamSocket and roDataGramSocket components for TCP and UDP traffic respectively.


roSocketAddress currently only support ipv4 addresses.
This object is created without any arguments:

  • CreateObject("roSocketAddress")

String getAddress()

Returns a string representing the ipv4 address in dotted decimal:port format.

Example: ""

Boolean setAddress(String address)

Sets the ipaddress to the dotted decimal:port string Example: "" or hostname Example: "".

DNS lookup done if address is in hostname format.

Returns true on success.

Integer getPort()

Returns an Integer that is the 32 bit ipv4 port value.

Boolean setPort(Integer port)

Sets the ipv4 port value to the passed 32 bit Integer value.

Returns true on success.

String getHostName()

Returns the string value of the hostname the component is set to.

Boolean setHostName()

Sets the string value of the hostname of the component

Returns true on success.

Boolean isAddressValid()

Returns true if the component contains a valid ipAddress.

Does a DNS lookup if the component currently has a hostname but not an ipAddress. And returns the result after the lookup.

  • No labels