diff options
Diffstat (limited to 'libjava/java/net/PlainSocketImpl.java')
-rw-r--r-- | libjava/java/net/PlainSocketImpl.java | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/libjava/java/net/PlainSocketImpl.java b/libjava/java/net/PlainSocketImpl.java index dd04a14..2b65ba0 100644 --- a/libjava/java/net/PlainSocketImpl.java +++ b/libjava/java/net/PlainSocketImpl.java @@ -67,10 +67,15 @@ class PlainSocketImpl extends SocketImpl protected void connect (String host, int port) throws IOException { - connect(InetAddress.getByName(host), port); + connect (new InetSocketAddress (InetAddress.getByName(host), port), 0); } - protected native void connect (InetAddress host, int port) + protected void connect (InetAddress host, int port) throws IOException + { + connect (new InetSocketAddress (host, port), 0); + } + + protected native void connect (SocketAddress addr, int timeout) throws IOException; protected native void bind (InetAddress host, int port) throws IOException; @@ -88,6 +93,8 @@ class PlainSocketImpl extends SocketImpl protected native void close () throws IOException; + protected native void sendUrgentData(int data) + throws IOException; // Stream handling. |