/**@class android.net.Network
 implements android.os.Parcelable

@extends java.lang.Object

 Identifies a {@code Network}.  This is supplied to applications via
 {@link android.net.ConnectivityManager.NetworkCallback} in response to the active
 {@link android.net.ConnectivityManager#requestNetwork} or passive
 {@link android.net.ConnectivityManager#registerNetworkCallback} calls.
 It is used to direct traffic to the given {@code Network}, either on a {@link Socket} basis
 through a targeted {@link SocketFactory} or process-wide via
 {@link android.net.ConnectivityManager#bindProcessToNetwork}.
*/
var Network = {

/** @hide
*/
netId : "null",
/***/
CREATOR : "null",
/**Operates the same as {@code InetAddress.getAllByName} except that host
 resolution is done on this network.
@param {String} host the hostname or literal IP string to be resolved.
@return {Object {java.net.InetAddress}} the array of addresses associated with the specified host.
@throws UnknownHostException if the address lookup fails.
*/
getAllByName : function(  ) {},

/**Operates the same as {@code InetAddress.getByName} except that host
 resolution is done on this network.
@param {String} host
            the hostName to be resolved to an address or {@code null}.
@return {Object {java.net.InetAddress}} the {@code InetAddress} instance representing the host.
@throws UnknownHostException
             if the address lookup fails.
*/
getByName : function(  ) {},

/**Returns a {@link SocketFactory} bound to this network.  Any {@link Socket} created by
 this factory will have its traffic sent over this {@code Network}.  Note that if this
 {@code Network} ever disconnects, this factory and any {@link Socket} it produced in the
 past or future will cease to work.
@return {Object {javax.net.SocketFactory}} a {@link SocketFactory} which produces {@link Socket} instances bound to this
         {@code Network}.
*/
getSocketFactory : function(  ) {},

/**Opens the specified {@link URL} on this {@code Network}, such that all traffic will be sent
 on this Network. The URL protocol must be {@code HTTP} or {@code HTTPS}.
@return {Object {java.net.URLConnection}} a {@code URLConnection} to the resource referred to by this URL.
@throws MalformedURLException if the URL protocol is not HTTP or HTTPS.
@throws IOException if an error occurs while opening the connection.
@see java.net.URL#openConnection()
*/
openConnection : function(  ) {},

/**Opens the specified {@link URL} on this {@code Network}, such that all traffic will be sent
 on this Network. The URL protocol must be {@code HTTP} or {@code HTTPS}.
@param {Object {URL}} proxy the proxy through which the connection will be established.
@return {Object {java.net.URLConnection}} a {@code URLConnection} to the resource referred to by this URL.
@throws MalformedURLException if the URL protocol is not HTTP or HTTPS.
@throws IllegalArgumentException if the argument proxy is null.
@throws IOException if an error occurs while opening the connection.
@see java.net.URL#openConnection()
*/
openConnection : function(  ) {},

/**Binds the specified {@link DatagramSocket} to this {@code Network}. All data traffic on the
 socket will be sent on this {@code Network}, irrespective of any process-wide network binding
 set by {@link android.net.ConnectivityManager#bindProcessToNetwork}. The socket must not be
 connected.
*/
bindSocket : function(  ) {},

/**Binds the specified {@link Socket} to this {@code Network}. All data traffic on the socket
 will be sent on this {@code Network}, irrespective of any process-wide network binding set by
 {@link android.net.ConnectivityManager#bindProcessToNetwork}. The socket must not be connected.
*/
bindSocket : function(  ) {},

/**Binds the specified {@link FileDescriptor} to this {@code Network}. All data traffic on the
 socket represented by this file descriptor will be sent on this {@code Network},
 irrespective of any process-wide network binding set by
 {@link android.net.ConnectivityManager#bindProcessToNetwork}. The socket must not be connected.
*/
bindSocket : function(  ) {},

/**Returns a handle representing this {@code Network}, for use with the NDK API.
*/
getNetworkHandle : function(  ) {},

/**
*/
describeContents : function(  ) {},

/**
*/
writeToParcel : function(  ) {},

/**
*/
equals : function(  ) {},

/**
*/
hashCode : function(  ) {},

/**
*/
toString : function(  ) {},


};