aurorafw.android.platform.multinetwork

Undocumented in source.

Members

Aliases

net_handle_t
alias net_handle_t = c_ulong

The corresponding C type for android.net.Network#getNetworkHandle() return values. The Java signed long value can be safely cast to a net_handle_t:

Functions

android_getaddrinfofornetwork
int android_getaddrinfofornetwork(net_handle_t network, const(char)* node, const(char)* service, const(addrinfo)* hints, addrinfo** res)

Perform hostname resolution via the DNS servers associated with |network|.

android_setprocnetwork
int android_setprocnetwork(net_handle_t network)

Binds the current process to |network|. All sockets created in the future (and not explicitly bound via android_setsocknetwork()) will be bound to |network|. All host name resolutions will be limited to |network| as well. Note that if the network identified by |network| ever disconnects, all sockets created in this way will cease to work and all host name resolutions will fail. This is by design so an application doesn't accidentally use sockets it thinks are still bound to a particular network.

android_setsocknetwork
int android_setsocknetwork(net_handle_t network, int fd)

Set the network to be used by the given socket file descriptor.

Manifest constants

NETWORK_UNSPECIFIED
enum NETWORK_UNSPECIFIED;

The value NETWORK_UNSPECIFIED indicates no specific network.

Meta