Home | History | Annotate | Download | only in vpn

Lines Matching defs:Os

41 import android.os.Build.VERSION_CODES;
43 import android.system.Os;
184 FileDescriptor socket = Os.socket(AF_INET, SOCK_DGRAM, IPPROTO_ICMP);
193 Os.connect(socket, InetAddress.getByName(host), port);
194 Os.write(socket, echo, 0, echo.length);
200 int ret = Os.poll(new StructPollfd[] { pollfd }, SOCKET_TIMEOUT_MS);
204 int read = Os.read(socket, reply, 0, echo.length);
214 InetSocketAddress local = (InetSocketAddress) Os.getsockname(socket);
228 Os.close(socket);
234 socket = Os.socket(AF_INET, SOCK_DGRAM, IPPROTO_ICMP);
236 Os.connect(socket, InetAddress.getByName(host), port);
239 Os.close(socket);