Package alt.java.net
Class SocketImpl
- java.lang.Object
-
- alt.java.net.SocketImpl
-
-
Constructor Summary
Constructors Constructor Description SocketImpl(java.net.Socket socket)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()java.net.InetAddressgetInetAddress()java.io.InputStreamgetInputStream()booleangetKeepAlive()java.net.InetAddressgetLocalAddress()intgetLocalPort()java.io.OutputStreamgetOutputStream()intgetPort()intgetReceiveBufferSize()intgetSendBufferSize()intgetSoLinger()intgetSoTimeout()booleangetTcpNoDelay()voidsetKeepAlive(boolean on)voidsetReceiveBufferSize(int size)voidsetSendBufferSize(int size)voidsetSoLinger(boolean on, int linger)voidsetSoTimeout(int timeout)voidsetTcpNoDelay(boolean on)voidshutdownInput()voidshutdownOutput()
-
-
-
Method Detail
-
getInetAddress
public java.net.InetAddress getInetAddress()
- Specified by:
getInetAddressin interfaceSocket
-
getLocalAddress
public java.net.InetAddress getLocalAddress()
- Specified by:
getLocalAddressin interfaceSocket
-
getLocalPort
public int getLocalPort()
- Specified by:
getLocalPortin interfaceSocket
-
getInputStream
public java.io.InputStream getInputStream() throws java.io.IOException- Specified by:
getInputStreamin interfaceSocket- Throws:
java.io.IOException
-
getOutputStream
public java.io.OutputStream getOutputStream() throws java.io.IOException- Specified by:
getOutputStreamin interfaceSocket- Throws:
java.io.IOException
-
setTcpNoDelay
public void setTcpNoDelay(boolean on) throws java.net.SocketException- Specified by:
setTcpNoDelayin interfaceSocket- Throws:
java.net.SocketException
-
getTcpNoDelay
public boolean getTcpNoDelay() throws java.net.SocketException- Specified by:
getTcpNoDelayin interfaceSocket- Throws:
java.net.SocketException
-
setSoLinger
public void setSoLinger(boolean on, int linger) throws java.net.SocketException- Specified by:
setSoLingerin interfaceSocket- Throws:
java.net.SocketException
-
getSoLinger
public int getSoLinger() throws java.net.SocketException- Specified by:
getSoLingerin interfaceSocket- Throws:
java.net.SocketException
-
setSoTimeout
public void setSoTimeout(int timeout) throws java.net.SocketException- Specified by:
setSoTimeoutin interfaceSocket- Throws:
java.net.SocketException
-
getSoTimeout
public int getSoTimeout() throws java.net.SocketException- Specified by:
getSoTimeoutin interfaceSocket- Throws:
java.net.SocketException
-
setSendBufferSize
public void setSendBufferSize(int size) throws java.net.SocketException- Specified by:
setSendBufferSizein interfaceSocket- Throws:
java.net.SocketException
-
getSendBufferSize
public int getSendBufferSize() throws java.net.SocketException- Specified by:
getSendBufferSizein interfaceSocket- Throws:
java.net.SocketException
-
setReceiveBufferSize
public void setReceiveBufferSize(int size) throws java.net.SocketException- Specified by:
setReceiveBufferSizein interfaceSocket- Throws:
java.net.SocketException
-
getReceiveBufferSize
public int getReceiveBufferSize() throws java.net.SocketException- Specified by:
getReceiveBufferSizein interfaceSocket- Throws:
java.net.SocketException
-
setKeepAlive
public void setKeepAlive(boolean on) throws java.net.SocketException- Specified by:
setKeepAlivein interfaceSocket- Throws:
java.net.SocketException
-
getKeepAlive
public boolean getKeepAlive() throws java.net.SocketException- Specified by:
getKeepAlivein interfaceSocket- Throws:
java.net.SocketException
-
close
public void close() throws java.io.IOException
-
shutdownInput
public void shutdownInput() throws java.io.IOException- Specified by:
shutdownInputin interfaceSocket- Throws:
java.io.IOException
-
shutdownOutput
public void shutdownOutput() throws java.io.IOException- Specified by:
shutdownOutputin interfaceSocket- Throws:
java.io.IOException
-
-