public class SlowSocket extends Socket
Constructor and Description |
---|
SlowSocket(int cps)
Added for use by SlowHC4SocketFactory.
|
SlowSocket(int cps,
String host,
int port) |
SlowSocket(int cps,
String host,
int port,
InetAddress localAddr,
int localPort) |
SlowSocket(int cps,
String host,
int port,
InetAddress localAddress,
int localPort,
int timeout) |
Modifier and Type | Method and Description |
---|---|
InputStream |
getInputStream() |
OutputStream |
getOutputStream() |
bind, close, connect, connect, getChannel, getInetAddress, getKeepAlive, getLocalAddress, getLocalPort, getLocalSocketAddress, getOOBInline, getPort, getReceiveBufferSize, getRemoteSocketAddress, getReuseAddress, getSendBufferSize, getSoLinger, getSoTimeout, getTcpNoDelay, getTrafficClass, isBound, isClosed, isConnected, isInputShutdown, isOutputShutdown, sendUrgentData, setKeepAlive, setOOBInline, setPerformancePreferences, setReceiveBufferSize, setReuseAddress, setSendBufferSize, setSocketImplFactory, setSoLinger, setSoTimeout, setTcpNoDelay, setTrafficClass, shutdownInput, shutdownOutput, toString
public SlowSocket(int cps, String host, int port, InetAddress localAddress, int localPort, int timeout) throws IOException
IOException
public SlowSocket(int cps, String host, int port, InetAddress localAddr, int localPort) throws IOException
cps
- characters per secondhost
- hostnameport
- portlocalAddr
- local addresslocalPort
- local portIOException
IllegalArgumentException
- if cps <=0public SlowSocket(int cps, String host, int port) throws UnknownHostException, IOException
cps
- characters per secondhost
- hostnameport
- portUnknownHostException
IOException
IllegalArgumentException
- if cps <=0public SlowSocket(int cps)
cps
- public OutputStream getOutputStream() throws IOException
getOutputStream
in class Socket
IOException
public InputStream getInputStream() throws IOException
getInputStream
in class Socket
IOException
Copyright © 1998-2012 Apache Software Foundation. All Rights Reserved.