Lines Matching defs:Network
51 * Identifies a {@code Network}. This is supplied to applications via
55 * It is used to direct traffic to the given {@code Network}, either on a {@link Socket} basis
59 public class Network implements Parcelable {
66 // Objects used to perform per-network operations such as getSocketFactory
89 public Network(int netId) {
96 public Network(Network that) {
102 * resolution is done on this network.
114 * resolution is done on this network.
127 * A {@code SocketFactory} that produces {@code Socket}'s bound to this network.
139 // Lookup addresses only on this Network.
190 * Returns a {@link SocketFactory} bound to this network. Any {@link Socket} created by
191 * this factory will have its traffic sent over this {@code Network}. Note that if this
192 * {@code Network} ever disconnects, this factory and any {@link Socket} it produced in the
196 * {@code Network}.
210 // every Network object, instead of one for every NetId. This is
212 // Network object for the same NetId, causing increased memory footprint
220 // a Network is referenced doesn't correlate with whether a new Network
230 return Arrays.asList(Network.this.getAllByName(hostname));
242 * Opens the specified {@link URL} on this {@code Network}, such that all traffic will be sent
243 * on this Network. The URL protocol must be {@code HTTP} or {@code HTTPS}.
267 * Opens the specified {@link URL} on this {@code Network}, such that all traffic will be sent
268 * on this Network. The URL protocol must be {@code HTTP} or {@code HTTPS}.
295 // Let network traffic go via mDns
302 * Binds the specified {@link DatagramSocket} to this {@code Network}. All data traffic on the
303 * socket will be sent on this {@code Network}, irrespective of any process-wide network binding
309 // exists, is available to bind to a network and is not closed.
315 * Binds the specified {@link Socket} to this {@code Network}. All data traffic on the socket
316 * will be sent on this {@code Network}, irrespective of any process-wide network binding set by
321 // exists, is available to bind to a network and is not closed.
327 * Binds the specified {@link FileDescriptor} to this {@code Network}. All data traffic on the
328 * socket represented by this file descriptor will be sent on this {@code Network},
329 * irrespective of any process-wide network binding set by
354 throw new ErrnoException("Binding socket to network " + netId, -err)
360 * Returns a handle representing this {@code Network}, for use with the NDK API.
363 // The network handle is explicitly not the same as the netId.
367 // context) might not be sufficient to fully identify a Network.
374 // inhibit the expansion of state required for Network objects.
399 public static final Creator<Network> CREATOR =
400 new Creator<Network>() {
401 public Network createFromParcel(Parcel in) {
404 return new Network(netId);
407 public Network[] newArray(int size) {
408 return new Network[size];
414 if (obj instanceof Network == false) return false;
415 Network other = (Network)obj;