Xojo Developer Conference
25/27th April 2018 in Denver.
MBS Xojo Conference
6/7th September 2018 in Munich, Germany.

Platforms to show: All Mac Windows Linux Cross-Platform

DNSAddressToNameIPv6MBS(HostAddress as string) as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
global method Network MBS Network Plugin 8.4 Yes Yes Yes Yes No
Function: Resolves an IP to it's name.
Notes:
Only for IPv6.
Returns "" on any error (like no name known).
Improved in 13.1 plugins to work on all platforms.

Some examples using this method:

Feedback, Comments & Corrections

DNSAddressToNameMBS(HostAddress as string) as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
global method Network MBS Network Plugin 4.2 Yes Yes Yes Yes No
Function: Resolves an IP to it's name.
Notes:
Only for IPv4.
Returns "" on any error (like no name known).
Improved in 13.1 plugins to work on all platforms.

Some examples using this method:

Feedback, Comments & Corrections

DNSNameToAddressIPv6MBS(HostName as string) as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
global method Network MBS Network Plugin 8.4 Yes Yes Yes Yes No
Function: Resolves the IP address for this name.
Example:
msgBox dnsnameToAddressIPv6MBS("localhost") + endofLine + dnsnameToAddressMBS("localhost")
Notes:
Only for IPv6.
Returns "" on any error (like no name known).
Improved in 13.1 plugins to work on all platforms.

Some examples using this method:

Feedback, Comments & Corrections

DNSNameToAddressMBS(HostName as string) as string
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
global method Network MBS Network Plugin 4.2 Yes Yes Yes Yes No
Function: Resolves the IP address for this name.
Example:
msgBox dnsnameToAddressIPv6MBS("localhost") + endofLine + dnsnameToAddressMBS("localhost")
Notes:
Only for IPv4.
Returns "" on any error (like no name known).
Improved in 13.1 plugins to work on all platforms.

This may not work on Windows or Linux with Bonjour host names!

Some examples using this method:

Some FAQ entries about this method:

Feedback, Comments & Corrections

OptionReuseAddressMBS(extends s as SocketCore) as Boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
global method Network MBS Network Plugin 17.0 Yes Yes Yes Yes No
Function: Queries whether to allow reuse of same port.
Notes:
Internally this uses SOL_SOCKET/SO_REUSEADDR option.
Raises UnsupportedOperationException in case of failure.

See also:

Feedback, Comments & Corrections

OptionReuseAddressMBS(extends s as SocketCore, assigns value as Boolean)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
global method Network MBS Network Plugin 17.0 Yes Yes Yes Yes No
Function: Sets whether to allow reuse of same port.
Notes:
Internally this uses SOL_SOCKET/SO_REUSEADDR option.

see also
http://stackoverflow.com/questions/14388706/socket-options-so-reuseaddr-and-so-reuseport-how-do-they-differ-do-they-mean-t

Raises UnsupportedOperationException in case of failure.

See also:

Feedback, Comments & Corrections

OptionReusePortMBS(extends s as SocketCore) as Boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
global method Network MBS Network Plugin 17.0 Yes Yes Yes Yes No
Function: Query whether reuse of same port and IP is allowed.
Notes:
Internally this uses SOL_SOCKET/SO_REUSEPORT option.
On Windows, this is not supported, so this property sets ReuseAddress.
Raises UnsupportedOperationException in case of failure.

See also:

Feedback, Comments & Corrections

OptionReusePortMBS(extends s as SocketCore, assigns value as Boolean)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
global method Network MBS Network Plugin 17.0 Yes Yes Yes Yes No
Function: Sets whether to allow reuse of same port and IP.
Notes:
Internally this uses SOL_SOCKET/SO_REUSEPORT option.
On Windows, this is not supported, so this property sets ReuseAddress.
Raises UnsupportedOperationException in case of failure.

See also:

Feedback, Comments & Corrections

The items on this page are in the following plugins: MBS Network Plugin.




Links
MBS Xojo Plugins