/[classpath]/classpath/java/net/PlainSocketImpl.java
ViewVC logotype

Diff of /classpath/java/net/PlainSocketImpl.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.8 by bryce, Tue Jan 29 20:46:06 2002 UTC revision 1.9 by cbj, Mon Mar 25 05:12:18 2002 UTC
# Line 88  class PlainSocketImpl extends SocketImpl Line 88  class PlainSocketImpl extends SocketImpl
88    
89    /**    /**
90     * Returns the number of bytes that the caller can read from this socket     * Returns the number of bytes that the caller can read from this socket
91     * without blocking. //*****Figure out if we can do something here     * without blocking.
92     *     *
93     * @return The number of readable bytes before blocking     * @return The number of readable bytes before blocking
94     *     *
95     * @exception IOException If an error occurs     * @exception IOException If an error occurs
96     */     */
97    protected int available() throws IOException    protected native int available() throws IOException;
   {  
     return(0);  
   }  
98    
99    /**    /**
100     * Binds to the specified port on the specified addr.  Note that this addr     * Binds to the specified port on the specified addr.  Note that this addr
# Line 120  class PlainSocketImpl extends SocketImpl Line 117  class PlainSocketImpl extends SocketImpl
117     *     *
118     * @exception IOException If an error occurs     * @exception IOException If an error occurs
119     */     */
120    protected native synchronized void close() throws IOException;    protected native void close() throws IOException;
121    
122    /**    /**
123     * Connects to the remote address and port specified as arguments.     * Connects to the remote address and port specified as arguments.
# Line 130  class PlainSocketImpl extends SocketImpl Line 127  class PlainSocketImpl extends SocketImpl
127     *     *
128     * @exception IOException If an error occurs     * @exception IOException If an error occurs
129     */     */
130    protected native synchronized void connect(InetAddress addr, int port)    protected native void connect(InetAddress addr, int port)
131      throws IOException;      throws IOException;
132    
133    /**    /**
# Line 205  class PlainSocketImpl extends SocketImpl Line 202  class PlainSocketImpl extends SocketImpl
202     *     *
203     * @exception SocketException If an error occurs     * @exception SocketException If an error occurs
204     */     */
205    public native synchronized void setOption(int option_id, Object val)    public native void setOption(int option_id, Object val)
206      throws SocketException;      throws SocketException;
207    
208    /**    /**
# Line 219  class PlainSocketImpl extends SocketImpl Line 216  class PlainSocketImpl extends SocketImpl
216     *     *
217     * @exception SocketException If an error occurs     * @exception SocketException If an error occurs
218     */     */
219    public native synchronized Object getOption(int option_id)    public native Object getOption(int option_id)
220      throws SocketException;      throws SocketException;
221    
222    /**    /**

Legend:
Removed from v.1.8  
changed lines
  Added in v.1.9

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26