OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
defs:nlSocket
(Results
1 - 2
of
2
) sorted by null
/frameworks/base/services/net/java/android/net/ip/
IpReachabilityMonitor.java
185
try (NetlinkSocket
nlSocket
= new NetlinkSocket(OsConstants.NETLINK_ROUTE)) {
187
nlSocket
.connectToKernel();
188
nlSocket
.sendMessage(msg, 0, msg.length, IO_TIMEOUT);
189
final ByteBuffer bytes =
nlSocket
.recvMessage(IO_TIMEOUT);
/libcore/luni/src/test/java/libcore/io/
OsTest.java
295
FileDescriptor
nlSocket
= Libcore.os.socket(AF_NETLINK, SOCK_DGRAM, NETLINK_ROUTE);
296
Libcore.os.bind(
nlSocket
, new NetlinkSocketAddress());
297
NetlinkSocketAddress address = (NetlinkSocketAddress) Libcore.os.getsockname(
nlSocket
);
302
Libcore.os.connect(
nlSocket
, nlKernel);
303
NetlinkSocketAddress nlPeer = (NetlinkSocketAddress) Libcore.os.getpeername(
nlSocket
);
306
Libcore.os.close(
nlSocket
);
Completed in 316 milliseconds