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

Diff of /classpath/java/net/SocketImpl.java

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

revision 1.11 by mkoch, Thu Nov 7 12:05:02 2002 UTC revision 1.12 by mkoch, Tue Nov 12 07:23:38 2002 UTC
# Line 122  public abstract class SocketImpl impleme Line 122  public abstract class SocketImpl impleme
122      throws IOException;      throws IOException;
123    
124    /**    /**
125       * Connects to the socket to the host specified in address. This
126       * method blocks until successful connected or the timeout occurs.
127       * A timeout of zero means no timout.
128       *
129       * @param address Data of remote host
130       * @param timeout time to wait to stop connecting
131       *
132       * @exception IOException If an error occurs
133       *
134       * @since 1.4
135       */
136      protected abstract void connect(SocketAddress address, int timeout)
137        throws IOException;
138    
139      /**
140     * 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
141     * must represent a local IP address.     * must represent a local IP address.
142     * <p>     * <p>
# Line 230  public abstract class SocketImpl impleme Line 245  public abstract class SocketImpl impleme
245    }    }
246        
247    /**    /**
248       * Sends one byte of urgent data to the socket.
249       *
250       * @param data The byte to send, the low eight bits of it
251       *
252       * @exception IOException If an error occurs
253       *
254       * @since 1.4
255       */
256      protected abstract void sendUrgentData(int data)
257        throws IOException;
258      
259      /**
260     * Returns the local port this socket is bound to     * Returns the local port this socket is bound to
261     *     *
262     * @return The local port     * @return The local port
# Line 279  public abstract class SocketImpl impleme Line 306  public abstract class SocketImpl impleme
306     * @XXX This redeclaration from SocketOptions is a workaround to a gcj bug.     * @XXX This redeclaration from SocketOptions is a workaround to a gcj bug.
307     */     */
308    public abstract Object getOption(int option_id) throws SocketException;    public abstract Object getOption(int option_id) throws SocketException;
309    
310      /**
311       * Shut down the input side of this socket.  Subsequent reads will
312       * return end-of-file.
313       *
314       * @exception IOException if an error occurs
315       */
316      protected abstract void shutdownInput () throws IOException;
317    
318      /**
319       * Shut down the output side of this socket.  Subsequent writes will
320       * fail with an IOException.
321       *
322       * @exception IOException if an error occurs
323       */
324      protected abstract void shutdownOutput () throws IOException;
325  }  }

Legend:
Removed from v.1.11  
changed lines
  Added in v.1.12

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