0ab1a26ca767ae36fbbe27b62893670b208fa494 |
|
07-Jul-2015 |
Neil Fuller <nfuller@google.com> |
Rearrange how AF_UNIX sockets are handled for accept() Contains the following changes: 1) Introduction of UnixSocketAddress / removal of InetUnixAddress. 2) Os/Posix classes now take SocketAddress instead of InetSocketAddress. 3) Removal of native code that dealt with InetUnixAddress. 4) Introduction of OsConstants.UNIX_PATH_MAX to hold the maximum sun_path size. 5) Update tests. Bug: 3106438 Change-Id: I47a3618387f21599bfbfd0dc9a821839bf47b39b
|
df29508a7aa622f265aaebdc472eb7d679185ebb |
|
30-Jan-2014 |
Neil Fuller <nfuller@google.com> |
Implementation of MulticastChannel. Note: ProtocolFamily / StandardProtocolFamily / DatagramChannel.open(ProtocolFamily) have not been implemented. There is a related change to libnativehelper that must be merged at the same time to avoid build breakage. See https://android-review.googlesource.com/#/c/81371/ Bug: 12464155 Change-Id: I07fc049b429a2d373e9bd7b07149632f5cd69f9d
|
482a3fc5635ac431b8a7476d7fe3397af4c2e8ec |
|
21-Mar-2013 |
Elliott Hughes <enh@google.com> |
Add support for Unix domain sockets. Bug: 6513075 Change-Id: I0b0166f59745ac8175b39d7796c093041b2df4fd
|
8ecbb3f6a89983adb1a085469befc70488f4f04f |
|
27-May-2011 |
Elliott Hughes <enh@google.com> |
Don't use mapped IPv4 addresses with MCAST_JOIN_GROUP. This change is really a one-liner, but I did some cleanup too. This fixes most of the Harmony multicast tests. Change-Id: I37ff9c6ee6ee64de0500ef4b51638b3d3a6417ff
|
23ec09188303a874b3b391f96ae0a29af002bff9 |
|
19-May-2011 |
Elliott Hughes <enh@google.com> |
Implement recvfrom(2). This one's a little bit hairy because of multiple return values. Bug: 3107501 Change-Id: I3bd35647d94bb6bc2192d6f31a39ecca07a3926e
|
da15009528cc8300a6251f1d0931ac8657c9fc31 |
|
09-May-2011 |
Elliott Hughes <enh@google.com> |
Expose bind(2). I've renamed the java.net.InetAddress to struct sockaddr conversion functions too, after initially screwing up this patch by copy & pasting a usage of the one that only one caller actually wants. Now the name's so ugly no-one will be likely to use it by accident. Bug: 3107501 Change-Id: I869a8d27fc40e462505e02bf25a67e771a403e92
|
4664da5cfc3f22a633ca2c7013a97c08a42e6ba7 |
|
07-May-2011 |
Elliott Hughes <enh@google.com> |
Simplify our AF_INET/AF_INET6 address situation. Looks like there's just one special case (presentation to the user) where we want an Inet4Address to be an AF_INET sockaddr_in rather than an IPv4-mapped AF_INET6 sockaddr_in6. Change-Id: Ib3bcc9b69a0fc27c7348b97cc81fb326ba1d5d9d
|
1c039d71d3879f39e3a75b8788e656f7b4f88f08 |
|
05-May-2011 |
Elliott Hughes <enh@google.com> |
Add getaddrinfo(2). This only supports the "node" side of getaddrinfo(2), not the "service" side. There's also no support for AI_CANONNAME, so we currently return InetAddress[] rather than anything equivalent to C's linked list of struct addrinfo. Bug: 3107501 Change-Id: I8cf6baa3027a0fa05ac6e2f8fcc1dd8b576ff8c4
|
4f11ebea266eada830d507b8f011e811a8e5d7bc |
|
20-Apr-2011 |
Elliott Hughes <enh@google.com> |
Add getnameinfo(3) (and gai_strerror(3)). There's quite a large corresponding change to InetAddress, plus I've changed the documentation for all the Permission classes to match the handful that we'd already documented as legacy cruft. Bug: http://b/3107501 Change-Id: Ia67aba79f0ab13e64085bd4a2df20ad0776bcc5b
|
8398239b31c6f6fb9b19788d0a4b9ff16a59caf7 |
|
01-Apr-2011 |
Elliott Hughes <enh@google.com> |
Make inetAddressToSocketAddress more available. I should probably rename the NetworkUtilities.h methods to say something like SockaddrStorage instead of SocketAddress, to avoid confusion with java.net.SocketAddress, but that can come later. Change-Id: Id878c2b865c284bb4a14f3db1eb15b3fa9ccc9e9
|
0a9d1ee45a9884a9616624d747172e18734e8fe0 |
|
31-Mar-2011 |
Elliott Hughes <enh@google.com> |
Add getsockname(2) and getsockopt(2). Bug: 3107501 Change-Id: Ibb0d5a576ecb46e51dbda6051776145eec9e7fe1
|
440ba565fa5384bc23255fbc412f7b97fcbdccd9 |
|
04-Aug-2010 |
Elliott Hughes <enh@google.com> |
Rename setNonBlocking to setBlocking. This makes the boolean argument less confusing. Change-Id: Ic226f6d3c5afe8e15a95e74917656424f8a448fe
|
3b0a5b910110625c50dae6baa94d9adaf58ed46e |
|
23-Jul-2010 |
Elliott Hughes <enh@google.com> |
Consistently use POSIX O_NONBLOCK instead of FIONBIO. Change-Id: I395012f0e51e1928e720d09d0f44b7d5085b01a3
|
753dcd862b31e85766225590d90ba0b9f481176f |
|
02-Jun-2010 |
Elliott Hughes <enh@google.com> |
Refactor some of the OSNetworkSystem stuff to more appropriate homes. Also rewrite PlainDatagramSocketImpl.peek in terms of existing primitives rather than requiring its own. I still don't see how it can get called, but at least now it doesn't require its own native code. Bug: 2686833 Change-Id: I0453add66dab4c7095ee2a3f51a49efbd1205598
|