MBS Xojo Developer Conference and Training
Join us from 3rd to 6th May 2017 in Berlin, Germany.

Platforms to show: All Mac Windows Linux Cross-Platform

DNSAddressToNameIPv6MBS(HostAddress as string) as string
global method, Network, MBS Network Plugin (Network),
Plugin version: 8.4, Mac: Yes, Win: Yes, Linux: Yes, Console & Web: Yes, Feedback.

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:

DNSAddressToNameMBS(HostAddress as string) as string
global method, Network, MBS Network Plugin (Network),
Plugin version: 4.2, Mac: Yes, Win: Yes, Linux: Yes, Console & Web: Yes, Feedback.

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:

DNSNameToAddressIPv6MBS(HostName as string) as string
global method, Network, MBS Network Plugin (Network),
Plugin version: 8.4, Mac: Yes, Win: Yes, Linux: Yes, Console & Web: Yes, Feedback.

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:

DNSNameToAddressMBS(HostName as string) as string
global method, Network, MBS Network Plugin (Network),
Plugin version: 4.2, Mac: Yes, Win: Yes, Linux: Yes, Console & Web: Yes, Feedback.

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:

OptionReuseAddressMBS(extends s as SocketCore) as Boolean
global method, Network, MBS Network Plugin (Network),
Plugin version: 17.0, Mac: Yes, Win: Yes, Linux: Yes, Console & Web: Yes, Feedback.

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:

OptionReuseAddressMBS(extends s as SocketCore, assigns value as Boolean)
global method, Network, MBS Network Plugin (Network),
Plugin version: 17.0, Mac: Yes, Win: Yes, Linux: Yes, Console & Web: Yes, Feedback.

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:

OptionReusePortMBS(extends s as SocketCore) as Boolean
global method, Network, MBS Network Plugin (Network),
Plugin version: 17.0, Mac: Yes, Win: Yes, Linux: Yes, Console & Web: Yes, Feedback.

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:

OptionReusePortMBS(extends s as SocketCore, assigns value as Boolean)
global method, Network, MBS Network Plugin (Network),
Plugin version: 17.0, Mac: Yes, Win: Yes, Linux: Yes, Console & Web: Yes, Feedback.

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:

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




Links
Christians Software aus Nickenich