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

Diff of /classpath/java/net/Socket.java

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

revision 1.48 by mkoch, Fri Oct 15 10:04:52 2004 UTC revision 1.49 by noa, Fri Nov 5 22:38:47 2004 UTC
# Line 520  public class Socket Line 520  public class Socket
520    
521    /**    /**
522     * Returns the port number of the remote end of the socket connection.  If     * Returns the port number of the remote end of the socket connection.  If
523     * this socket is not connected, then -1 is returned.     * this socket is not connected, then 0 is returned.
524     *     *
525     * @return The remote port this socket is connected to     * @return The remote port this socket is connected to
526     */     */
527    public int getPort()    public int getPort()
528    {    {
529      if (! isConnected())      if (! isConnected())
530        return -1;        return 0;
531    
532      try      try
533        {        {

Legend:
Removed from v.1.48  
changed lines
  Added in v.1.49

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