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/core/java/android/net/
IpReachabilityMonitor.java
108
try (NetlinkSocket
nlSocket
= new NetlinkSocket(OsConstants.NETLINK_ROUTE)) {
109
nlSocket
.connectToKernel();
110
nlSocket
.sendMessage(msg, 0, msg.length, IO_TIMEOUT);
111
final ByteBuffer bytes =
nlSocket
.recvMessage(IO_TIMEOUT);
/libcore/luni/src/test/java/libcore/io/
OsTest.java
283
FileDescriptor
nlSocket
= Libcore.os.socket(AF_NETLINK, SOCK_DGRAM, NETLINK_ROUTE);
284
Libcore.os.bind(
nlSocket
, new NetlinkSocketAddress());
285
NetlinkSocketAddress address = (NetlinkSocketAddress) Libcore.os.getsockname(
nlSocket
);
290
Libcore.os.connect(
nlSocket
, nlKernel);
291
NetlinkSocketAddress nlPeer = (NetlinkSocketAddress) Libcore.os.getpeername(
nlSocket
);
294
Libcore.os.close(
nlSocket
);
Completed in 144 milliseconds