public FileDescriptor socket(int domain, int type, int protocol) throws ErrnoException { return os.socket(domain, type, protocol); } public void socketpair(int domain, int type, int protocol, FileDescriptor fd1, FileDescriptor fd2) throws ErrnoException { os.socketpair(domain, type, protocol, fd1, fd2); }
@Override public FileDescriptor socket(int domain, int type, int protocol) throws ErrnoException { return tagSocket(os.socket(domain, type, protocol)); }
public static FileDescriptor socket(boolean stream) throws SocketException { FileDescriptor fd; try { fd = Libcore.os.socket(AF_INET6, stream ? SOCK_STREAM : SOCK_DGRAM, 0); // The RFC (http://www.ietf.org/rfc/rfc3493.txt) says that IPV6_MULTICAST_HOPS defaults // to 1. The Linux kernel (at least up to 2.6.38) accidentally defaults to 64 (which // would be correct for the *unicast* hop limit). // See http://www.spinics.net/lists/netdev/msg129022.html, though no patch appears to // have been applied as a result of that discussion. If that bug is ever fixed, we can // remove this code. Until then, we manually set the hop limit on IPv6 datagram sockets. // (IPv4 is already correct.) if (!stream) { Libcore.os.setsockoptInt(fd, IPPROTO_IPV6, IPV6_MULTICAST_HOPS, 1); } return fd; } catch (ErrnoException errnoException) { throw errnoException.rethrowAsSocketException(); } }
public FileDescriptor socket(int domain, int type, int protocol) throws ErrnoException { return os.socket(domain, type, protocol); } public void socketpair(int domain, int type, int protocol, FileDescriptor fd1, FileDescriptor fd2) throws ErrnoException { os.socketpair(domain, type, protocol, fd1, fd2); }
public FileDescriptor socket(int domain, int type, int protocol) throws ErrnoException { return os.socket(domain, type, protocol); } public void socketpair(int domain, int type, int protocol, FileDescriptor fd1, FileDescriptor fd2) throws ErrnoException { os.socketpair(domain, type, protocol, fd1, fd2); }
public FileDescriptor socket(int domain, int type, int protocol) throws ErrnoException { return os.socket(domain, type, protocol); } public void socketpair(int domain, int type, int protocol, FileDescriptor fd1, FileDescriptor fd2) throws ErrnoException { os.socketpair(domain, type, protocol, fd1, fd2); }
public FileDescriptor socket(int domain, int type, int protocol) throws ErrnoException { return os.socket(domain, type, protocol); } public void socketpair(int domain, int type, int protocol, FileDescriptor fd1, FileDescriptor fd2) throws ErrnoException { os.socketpair(domain, type, protocol, fd1, fd2); }
public FileDescriptor socket(int domain, int type, int protocol) throws ErrnoException { return os.socket(domain, type, protocol); } public void socketpair(int domain, int type, int protocol, FileDescriptor fd1, FileDescriptor fd2) throws ErrnoException { os.socketpair(domain, type, protocol, fd1, fd2); }
public FileDescriptor socket(int domain, int type, int protocol) throws ErrnoException { return os.socket(domain, type, protocol); } public void socketpair(int domain, int type, int protocol, FileDescriptor fd1, FileDescriptor fd2) throws ErrnoException { os.socketpair(domain, type, protocol, fd1, fd2); }
@Override public FileDescriptor socket(int domain, int type, int protocol) throws ErrnoException { return tagSocket(os.socket(domain, type, protocol)); }
@Override public FileDescriptor socket(int domain, int type, int protocol) throws ErrnoException { return tagSocket(os.socket(domain, type, protocol)); }
@Override public FileDescriptor socket(int domain, int type, int protocol) throws ErrnoException { return tagSocket(os.socket(domain, type, protocol)); }
@Override public FileDescriptor socket(int domain, int type, int protocol) throws ErrnoException { return tagSocket(os.socket(domain, type, protocol)); }
@Override public FileDescriptor socket(int domain, int type, int protocol) throws ErrnoException { return tagSocket(os.socket(domain, type, protocol)); }
@Override public FileDescriptor socket(int domain, int type, int protocol) throws ErrnoException { return tagSocket(os.socket(domain, type, protocol)); }
public static FileDescriptor socket(boolean stream) throws SocketException { FileDescriptor fd; try { fd = Libcore.os.socket(AF_INET6, stream ? SOCK_STREAM : SOCK_DGRAM, 0); // The RFC (http://www.ietf.org/rfc/rfc3493.txt) says that IPV6_MULTICAST_HOPS defaults // to 1. The Linux kernel (at least up to 2.6.38) accidentally defaults to 64 (which // would be correct for the *unicast* hop limit). // See http://www.spinics.net/lists/netdev/msg129022.html, though no patch appears to // have been applied as a result of that discussion. If that bug is ever fixed, we can // remove this code. Until then, we manually set the hop limit on IPv6 datagram sockets. // (IPv4 is already correct.) if (!stream) { Libcore.os.setsockoptInt(fd, IPPROTO_IPV6, IPV6_MULTICAST_HOPS, 1); } return fd; } catch (ErrnoException errnoException) { throw errnoException.rethrowAsSocketException(); } }
public static FileDescriptor socket(boolean stream) throws SocketException { FileDescriptor fd; try { fd = Libcore.os.socket(AF_INET6, stream ? SOCK_STREAM : SOCK_DGRAM, 0); // The RFC (http://www.ietf.org/rfc/rfc3493.txt) says that IPV6_MULTICAST_HOPS defaults // to 1. The Linux kernel (at least up to 2.6.38) accidentally defaults to 64 (which // would be correct for the *unicast* hop limit). // See http://www.spinics.net/lists/netdev/msg129022.html, though no patch appears to // have been applied as a result of that discussion. If that bug is ever fixed, we can // remove this code. Until then, we manually set the hop limit on IPv6 datagram sockets. // (IPv4 is already correct.) if (!stream) { Libcore.os.setsockoptInt(fd, IPPROTO_IPV6, IPV6_MULTICAST_HOPS, 1); } return fd; } catch (ErrnoException errnoException) { throw errnoException.rethrowAsSocketException(); } }
public static FileDescriptor socket(boolean stream) throws SocketException { FileDescriptor fd; try { fd = Libcore.os.socket(AF_INET6, stream ? SOCK_STREAM : SOCK_DGRAM, 0); // The RFC (http://www.ietf.org/rfc/rfc3493.txt) says that IPV6_MULTICAST_HOPS defaults // to 1. The Linux kernel (at least up to 2.6.38) accidentally defaults to 64 (which // would be correct for the *unicast* hop limit). // See http://www.spinics.net/lists/netdev/msg129022.html, though no patch appears to // have been applied as a result of that discussion. If that bug is ever fixed, we can // remove this code. Until then, we manually set the hop limit on IPv6 datagram sockets. // (IPv4 is already correct.) if (!stream) { Libcore.os.setsockoptInt(fd, IPPROTO_IPV6, IPV6_MULTICAST_HOPS, 1); } return fd; } catch (ErrnoException errnoException) { throw errnoException.rethrowAsSocketException(); } }
public static FileDescriptor socket(boolean stream) throws SocketException { FileDescriptor fd; try { fd = Libcore.os.socket(AF_INET6, stream ? SOCK_STREAM : SOCK_DGRAM, 0); // The RFC (http://www.ietf.org/rfc/rfc3493.txt) says that IPV6_MULTICAST_HOPS defaults // to 1. The Linux kernel (at least up to 2.6.38) accidentally defaults to 64 (which // would be correct for the *unicast* hop limit). // See http://www.spinics.net/lists/netdev/msg129022.html, though no patch appears to // have been applied as a result of that discussion. If that bug is ever fixed, we can // remove this code. Until then, we manually set the hop limit on IPv6 datagram sockets. // (IPv4 is already correct.) if (!stream) { Libcore.os.setsockoptInt(fd, IPPROTO_IPV6, IPV6_MULTICAST_HOPS, 1); } return fd; } catch (ErrnoException errnoException) { throw errnoException.rethrowAsSocketException(); } }
public static FileDescriptor socket(boolean stream) throws SocketException { FileDescriptor fd; try { fd = Libcore.os.socket(AF_INET6, stream ? SOCK_STREAM : SOCK_DGRAM, 0); // The RFC (http://www.ietf.org/rfc/rfc3493.txt) says that IPV6_MULTICAST_HOPS defaults // to 1. The Linux kernel (at least up to 2.6.38) accidentally defaults to 64 (which // would be correct for the *unicast* hop limit). // See http://www.spinics.net/lists/netdev/msg129022.html, though no patch appears to // have been applied as a result of that discussion. If that bug is ever fixed, we can // remove this code. Until then, we manually set the hop limit on IPv6 datagram sockets. // (IPv4 is already correct.) if (!stream) { Libcore.os.setsockoptInt(fd, IPPROTO_IPV6, IPV6_MULTICAST_HOPS, 1); } return fd; } catch (ErrnoException errnoException) { throw errnoException.rethrowAsSocketException(); } }