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
183
try (NetlinkSocket
nlSocket
= new NetlinkSocket(OsConstants.NETLINK_ROUTE)) {
185
nlSocket
.connectToKernel();
186
nlSocket
.sendMessage(msg, 0, msg.length, IO_TIMEOUT);
187
final ByteBuffer bytes =
nlSocket
.recvMessage(IO_TIMEOUT);
/libcore/luni/src/test/java/libcore/io/
OsTest.java
290
FileDescriptor
nlSocket
= Libcore.os.socket(AF_NETLINK, SOCK_DGRAM, NETLINK_ROUTE);
291
Libcore.os.bind(
nlSocket
, new NetlinkSocketAddress());
292
NetlinkSocketAddress address = (NetlinkSocketAddress) Libcore.os.getsockname(
nlSocket
);
297
Libcore.os.connect(
nlSocket
, nlKernel);
298
NetlinkSocketAddress nlPeer = (NetlinkSocketAddress) Libcore.os.getpeername(
nlSocket
);
301
Libcore.os.close(
nlSocket
);
Completed in 97 milliseconds