当前页面:
在线文档首页 >
JBoss 3.2.7 common API Documentation 英文版文档
TimeoutSocket (JBoss/Common API) - JBoss 3.2.7 common API Documentation 英文版文档
org.jboss.net.sockets
Class TimeoutSocket
java.lang.Object
java.net.Socket
org.jboss.net.sockets.TimeoutSocket
- public class TimeoutSocket
- extends Socket
A Socket that overrides the getInputStream to return a InterruptableInputStream
- Version:
- $Revision: 1.1.4.1 $
- Author:
- Scott.Stark@jboss.org
Methods inherited from class java.net.Socket |
bind, connect, connect, getChannel, getLocalSocketAddress, getOOBInline, getRemoteSocketAddress, getReuseAddress, getTrafficClass, isBound, isClosed, isConnected, isInputShutdown, isOutputShutdown, sendUrgentData, setOOBInline, setReuseAddress, setSocketImplFactory, setTrafficClass |
TimeoutSocket
public TimeoutSocket(Socket s)
getInetAddress
public InetAddress getInetAddress()
getLocalAddress
public InetAddress getLocalAddress()
getPort
public int getPort()
getLocalPort
public int getLocalPort()
getInputStream
public InputStream getInputStream()
throws IOException
- Throws:
IOException
getOutputStream
public OutputStream getOutputStream()
throws IOException
- Throws:
IOException
setTcpNoDelay
public void setTcpNoDelay(boolean on)
throws SocketException
- Throws:
SocketException
getTcpNoDelay
public boolean getTcpNoDelay()
throws SocketException
- Throws:
SocketException
setSoLinger
public void setSoLinger(boolean on,
int linger)
throws SocketException
- Throws:
SocketException
getSoLinger
public int getSoLinger()
throws SocketException
- Throws:
SocketException
setSoTimeout
public void setSoTimeout(int timeout)
throws SocketException
- Throws:
SocketException
getSoTimeout
public int getSoTimeout()
throws SocketException
- Throws:
SocketException
setSendBufferSize
public void setSendBufferSize(int size)
throws SocketException
- Throws:
SocketException
getSendBufferSize
public int getSendBufferSize()
throws SocketException
- Throws:
SocketException
setReceiveBufferSize
public void setReceiveBufferSize(int size)
throws SocketException
- Throws:
SocketException
getReceiveBufferSize
public int getReceiveBufferSize()
throws SocketException
- Throws:
SocketException
setKeepAlive
public void setKeepAlive(boolean on)
throws SocketException
- Throws:
SocketException
getKeepAlive
public boolean getKeepAlive()
throws SocketException
- Throws:
SocketException
close
public void close()
throws IOException
- Throws:
IOException
shutdownInput
public void shutdownInput()
throws IOException
- Throws:
IOException
shutdownOutput
public void shutdownOutput()
throws IOException
- Throws:
IOException
toString
public String toString()
Copyright © 2002 JBoss Group, LLC. All Rights Reserved.