diff options
| author | Wink Saville <wink@google.com> | 2010-09-21 14:55:16 -0700 |
|---|---|---|
| committer | Android (Google) Code Review <android-gerrit@google.com> | 2010-09-21 14:55:16 -0700 |
| commit | 76a562d45f802a2cbee0c1a8a973664faa2f7ca3 (patch) | |
| tree | 578c8da79b753e56255a3be9fa056c2458889cc6 /core/java/android/net/LinkSocket.java | |
| parent | 04f8040d1ee6b4334aeb175037747f4c70881e8c (diff) | |
| parent | 6e80997a9a7b6a15370544edde322cd8833e9524 (diff) | |
Merge "Cleanup copyright dates add missing method."
Diffstat (limited to 'core/java/android/net/LinkSocket.java')
| -rw-r--r-- | core/java/android/net/LinkSocket.java | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/core/java/android/net/LinkSocket.java b/core/java/android/net/LinkSocket.java index d416ed0955ac..5aa64512dc82 100644 --- a/core/java/android/net/LinkSocket.java +++ b/core/java/android/net/LinkSocket.java @@ -197,6 +197,17 @@ public class LinkSocket extends Socket { /** * Connect a duplicate socket socket to the same remote host address and port + * as the original with a timeout parameter. + * @param timeout the timeout value in milliseconds or 0 for infinite timeout + * @throws IOException if the socket is already connected or an error occurs + * while connecting + */ + public void connect(int timeout) throws IOException { + if (DBG) log("connect(timeout) EX"); + } + + /** + * Connect a duplicate socket socket to the same remote host address and port * as the original. * @throws IOException if the socket is already connected or an error occurs * while connecting @@ -237,9 +248,9 @@ public class LinkSocket extends Socket { */ @Override @Deprecated - public void bind(SocketAddress localAddr) throws IOException { + public void bind(SocketAddress localAddr) throws UnsupportedOperationException { if (DBG) log("bind(localAddr) EX throws IOException"); - throw new IOException("bind is deprecated for LinkSocket"); + throw new UnsupportedOperationException("bind is deprecated for LinkSocket"); } /** |
