diff options
author | Elliott Hughes <enh@google.com> | 2011-05-09 14:00:48 -0700 |
---|---|---|
committer | Elliott Hughes <enh@google.com> | 2011-05-09 14:00:48 -0700 |
commit | da15009528cc8300a6251f1d0931ac8657c9fc31 (patch) | |
tree | 06e0cae9914c5e67afe67534396a994904332b9b /dalvik | |
parent | 4664da5cfc3f22a633ca2c7013a97c08a42e6ba7 (diff) | |
download | libcore-da15009528cc8300a6251f1d0931ac8657c9fc31.zip libcore-da15009528cc8300a6251f1d0931ac8657c9fc31.tar.gz libcore-da15009528cc8300a6251f1d0931ac8657c9fc31.tar.bz2 |
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
Diffstat (limited to 'dalvik')
-rw-r--r-- | dalvik/src/main/java/dalvik/system/BlockGuard.java | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/dalvik/src/main/java/dalvik/system/BlockGuard.java b/dalvik/src/main/java/dalvik/system/BlockGuard.java index 13cc32d..119833b 100644 --- a/dalvik/src/main/java/dalvik/system/BlockGuard.java +++ b/dalvik/src/main/java/dalvik/system/BlockGuard.java @@ -173,12 +173,6 @@ public final class BlockGuard { mNetwork.accept(serverFd, newSocket, clientFd); } - - public void bind(FileDescriptor aFD, InetAddress inetAddress, int port) - throws SocketException { - mNetwork.bind(aFD, inetAddress, port); - } - public int read(FileDescriptor aFD, byte[] data, int offset, int count) throws IOException { BlockGuard.getThreadPolicy().onNetwork(); return mNetwork.read(aFD, data, offset, count); |