alt.java.net
Interface Socket

All Known Implementing Classes:
MockSocket, SocketImpl

public interface Socket


Method Summary
 void close()
           
 java.net.InetAddress getInetAddress()
           
 java.io.InputStream getInputStream()
           
 boolean getKeepAlive()
           
 java.net.InetAddress getLocalAddress()
           
 int getLocalPort()
           
 java.io.OutputStream getOutputStream()
           
 int getPort()
           
 int getReceiveBufferSize()
           
 int getSendBufferSize()
           
 int getSoLinger()
           
 int getSoTimeout()
           
 boolean getTcpNoDelay()
           
 void setKeepAlive(boolean on)
           
 void setReceiveBufferSize(int size)
           
 void setSendBufferSize(int size)
           
 void setSoLinger(boolean on, int linger)
           
 void setSoTimeout(int timeout)
           
 void setTcpNoDelay(boolean on)
           
 void shutdownInput()
           
 void shutdownOutput()
           
 

Method Detail

getInetAddress

public java.net.InetAddress getInetAddress()

getLocalAddress

public java.net.InetAddress getLocalAddress()

getPort

public int getPort()

getLocalPort

public int getLocalPort()

getInputStream

public java.io.InputStream getInputStream()
                                   throws java.io.IOException
Throws:
java.io.IOException

getOutputStream

public java.io.OutputStream getOutputStream()
                                     throws java.io.IOException
Throws:
java.io.IOException

setTcpNoDelay

public void setTcpNoDelay(boolean on)
                   throws java.net.SocketException
Throws:
java.net.SocketException

getTcpNoDelay

public boolean getTcpNoDelay()
                      throws java.net.SocketException
Throws:
java.net.SocketException

setSoLinger

public void setSoLinger(boolean on,
                        int linger)
                 throws java.net.SocketException
Throws:
java.net.SocketException

getSoLinger

public int getSoLinger()
                throws java.net.SocketException
Throws:
java.net.SocketException

setSoTimeout

public void setSoTimeout(int timeout)
                  throws java.net.SocketException
Throws:
java.net.SocketException

getSoTimeout

public int getSoTimeout()
                 throws java.net.SocketException
Throws:
java.net.SocketException

setSendBufferSize

public void setSendBufferSize(int size)
                       throws java.net.SocketException
Throws:
java.net.SocketException

getSendBufferSize

public int getSendBufferSize()
                      throws java.net.SocketException
Throws:
java.net.SocketException

setReceiveBufferSize

public void setReceiveBufferSize(int size)
                          throws java.net.SocketException
Throws:
java.net.SocketException

getReceiveBufferSize

public int getReceiveBufferSize()
                         throws java.net.SocketException
Throws:
java.net.SocketException

setKeepAlive

public void setKeepAlive(boolean on)
                  throws java.net.SocketException
Throws:
java.net.SocketException

getKeepAlive

public boolean getKeepAlive()
                     throws java.net.SocketException
Throws:
java.net.SocketException

close

public void close()
           throws java.io.IOException
Throws:
java.io.IOException

shutdownInput

public void shutdownInput()
                   throws java.io.IOException
Throws:
java.io.IOException

shutdownOutput

public void shutdownOutput()
                    throws java.io.IOException
Throws:
java.io.IOException


Copyright © 2002 Mock Objects. All Rights Reserved.