Home | History | Annotate | Download | only in net

Lines Matching defs:Network

49  * Identifies a {@code Network}.  This is supplied to applications via
53 * It is used to direct traffic to the given {@code Network}, either on a {@link Socket} basis
57 public class Network implements Parcelable {
64 // Objects used to perform per-network operations such as getSocketFactory
82 // Value used to obfuscate network handle longs.
95 // requests). This only affects DNS queries made using this network object.
106 public Network(int netId) {
113 public Network(Network that) {
119 * resolution is done on this network.
131 * resolution is done on this network.
169 * A {@code SocketFactory} that produces {@code Socket}'s bound to this network.
181 // Lookup addresses only on this Network.
256 * Returns a {@link SocketFactory} bound to this network. Any {@link Socket} created by
257 * this factory will have its traffic sent over this {@code Network}. Note that if this
258 * {@code Network} ever disconnects, this factory and any {@link Socket} it produced in the
262 * {@code Network}.
276 // every Network object, instead of one for every NetId. This is
278 // Network object for the same NetId, causing increased memory footprint
286 // a Network is referenced doesn't correlate with whether a new Network
294 // connections created by this Network. Configuration that might vary is left
296 Dns dnsLookup = hostname -> Arrays.asList(Network.this.getAllByName(hostname));
299 // A private connection pool just for this Network.
308 * Opens the specified {@link URL} on this {@code Network}, such that all traffic will be sent
309 * on this Network. The URL protocol must be {@code HTTP} or {@code HTTPS}.
333 * Opens the specified {@link URL} on this {@code Network}, such that all traffic will be sent
334 * on this Network. The URL protocol must be {@code HTTP} or {@code HTTPS}.
351 * Binds the specified {@link DatagramSocket} to this {@code Network}. All data traffic on the
352 * socket will be sent on this {@code Network}, irrespective of any process-wide network binding
358 // exists, is available to bind to a network and is not closed.
364 * Binds the specified {@link Socket} to this {@code Network}. All data traffic on the socket
365 * will be sent on this {@code Network}, irrespective of any process-wide network binding set by
370 // exists, is available to bind to a network and is not closed.
376 * Binds the specified {@link FileDescriptor} to this {@code Network}. All data traffic on the
377 * socket represented by this file descriptor will be sent on this {@code Network},
378 * irrespective of any process-wide network binding set by
403 throw new ErrnoException("Binding socket to network " + netId, -err)
409 * Returns a {@link Network} object given a handle returned from {@link #getNetworkHandle}.
412 * @return A {@link Network} object derived from {@code networkHandle}.
414 public static Network fromNetworkHandle(long networkHandle) {
417 "Network.fromNetworkHandle refusing to instantiate NETID_UNSET Network.");
422 "Value passed to fromNetworkHandle() is not a network handle.");
424 return new Network((int) (networkHandle >> HANDLE_MAGIC_SIZE));
428 * Returns a handle representing this {@code Network}, for use with the NDK API.
431 // The network handle is explicitly not the same as the netId.
435 // context) might not be sufficient to fully identify a Network.
442 // inhibit the expansion of state required for Network objects.
463 public static final Creator<Network> CREATOR =
464 new Creator<Network>() {
465 public Network createFromParcel(Parcel in) {
468 return new Network(netId);
471 public Network[] newArray(int size) {
472 return new Network[size];
478 if (obj instanceof Network == false) return false;
479 Network other = (Network)obj;