java.net
Class ServerSocket

java.lang.Object
  |
  +--java.net.ServerSocket

public synchronized class ServerSocket
extends Object


Constructor Summary
ServerSocket()
           
ServerSocket(int)
           
ServerSocket(int, int)
           
ServerSocket(int, int, InetAddress)
           
 
Method Summary
 Socket accept()
           
 void bind(SocketAddress)
           
 void bind(SocketAddress, int)
           
 void close()
           
 java.nio.channels.ServerSocketChannel getChannel()
           
 InetAddress getInetAddress()
           
 int getLocalPort()
           
 SocketAddress getLocalSocketAddress()
           
 int getReceiveBufferSize()
           
 boolean getReuseAddress()
           
 int getSoTimeout()
           
protected  void implAccept(Socket)
           
 boolean isBound()
           
 boolean isClosed()
           
 void setReceiveBufferSize(int)
           
 void setReuseAddress(boolean)
           
static void setSocketFactory(SocketImplFactory)
           
 void setSoTimeout(int)
           
 String toString()
          Returns the empty string.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait
 

Constructor Detail

ServerSocket

public ServerSocket()
             throws IOException

ServerSocket

public ServerSocket(int)
             throws IOException

ServerSocket

public ServerSocket(int,
                    int)
             throws IOException

ServerSocket

public ServerSocket(int,
                    int,
                    InetAddress)
             throws IOException
Method Detail

bind

public void bind(SocketAddress)
          throws IOException
IOException

bind

public void bind(SocketAddress,
                 int)
          throws IOException
IOException

getInetAddress

public InetAddress getInetAddress()

getLocalPort

public int getLocalPort()

getLocalSocketAddress

public SocketAddress getLocalSocketAddress()

accept

public Socket accept()
              throws IOException
IOException

implAccept

protected final void implAccept(Socket)
                         throws IOException
IOException

close

public void close()
           throws IOException
IOException

getChannel

public java.nio.channels.ServerSocketChannel getChannel()

isBound

public boolean isBound()

isClosed

public boolean isClosed()

setSoTimeout

public void setSoTimeout(int)
                  throws SocketException
SocketException

getSoTimeout

public int getSoTimeout()
                 throws IOException
IOException

setReuseAddress

public void setReuseAddress(boolean)
                     throws SocketException
SocketException

getReuseAddress

public boolean getReuseAddress()
                        throws SocketException
SocketException

toString

public String toString()
Description copied from class: Object
Returns the empty string. It's here to satisfy javac.

Overrides:
toString in class Object

setSocketFactory

public static void setSocketFactory(SocketImplFactory)
                             throws IOException
IOException

setReceiveBufferSize

public void setReceiveBufferSize(int)
                          throws SocketException
SocketException

getReceiveBufferSize

public int getReceiveBufferSize()
                         throws SocketException
SocketException