alt.java.net

Interface Socket

Known Implementing Classes:
MockSocket, SocketImpl

public interface Socket

Method Summary

void
close()
InetAddress
getInetAddress()
InputStream
getInputStream()
boolean
getKeepAlive()
InetAddress
getLocalAddress()
int
getLocalPort()
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 Details

close

public void close()
            throws IOException

getInetAddress

public InetAddress getInetAddress()

getInputStream

public InputStream getInputStream()
            throws IOException

getKeepAlive

public boolean getKeepAlive()
            throws SocketException

getLocalAddress

public InetAddress getLocalAddress()

getLocalPort

public int getLocalPort()

getOutputStream

public OutputStream getOutputStream()
            throws IOException

getPort

public int getPort()

getReceiveBufferSize

public int getReceiveBufferSize()
            throws SocketException

getSendBufferSize

public int getSendBufferSize()
            throws SocketException

getSoLinger

public int getSoLinger()
            throws SocketException

getSoTimeout

public int getSoTimeout()
            throws SocketException

getTcpNoDelay

public boolean getTcpNoDelay()
            throws SocketException

setKeepAlive

public void setKeepAlive(boolean on)
            throws SocketException

setReceiveBufferSize

public void setReceiveBufferSize(int size)
            throws SocketException

setSendBufferSize

public void setSendBufferSize(int size)
            throws SocketException

setSoLinger

public void setSoLinger(boolean on,
                        int linger)
            throws SocketException

setSoTimeout

public void setSoTimeout(int timeout)
            throws SocketException

setTcpNoDelay

public void setTcpNoDelay(boolean on)
            throws SocketException

shutdownInput

public void shutdownInput()
            throws IOException

shutdownOutput

public void shutdownOutput()
            throws IOException

Copyright © 2002 Mock Objects. All Rights Reserved.