Home | History | Annotate | Download | only in net

Lines Matching defs:netId

60     public final int netId;
85 public Network(int netId) {
86 this.netId = netId;
93 this.netId = that.netId;
105 return InetAddress.getAllByNameOnNet(host, netId);
119 return InetAddress.getByNameOnNet(host, netId);
128 public NetworkBoundSocketFactory(int netId) {
130 mNetId = netId;
198 mNetworkBoundSocketFactory = new NetworkBoundSocketFactory(netId);
206 // every Network object, instead of one for every NetId. This is
208 // Network object for the same NetId, causing increased memory footprint
213 // for every NetId, perhaps by using a static HashMap of NetIds to
217 // will be instantiated in the near future with the same NetID. A good
348 final int err = NetworkUtils.bindSocketToNetwork(fd.getInt$(), netId);
351 throw new ErrnoException("Binding socket to network " + netId, -err)
360 // The network handle is explicitly not the same as the netId.
362 // The netId is an implementation detail which might be changed in the
368 // were identical and passing a netId to a call expecting a handle
370 // prevent future changes to the semantics of the netId field or
381 if (netId == 0) {
385 return (((long) netId) << 32) | HANDLE_MAGIC;
393 dest.writeInt(netId);
399 int netId = in.readInt();
401 return new Network(netId);
413 return this.netId == other.netId;
418 return netId * 11;
423 return Integer.toString(netId);