Package org.apache.jmeter.util
Class SlowSocket
-
- All Implemented Interfaces:
-
java.io.Closeable
,java.lang.AutoCloseable
public class SlowSocket extends Socket
"Slow" (non-SSL) socket implementation to emulate dial-up modems etc
-
-
Constructor Summary
Constructors Constructor Description SlowSocket(int cps, String host, int port, InetAddress localAddress, int localPort, int timeout)
SlowSocket(int cps, String host, int port, InetAddress localAddr, int localPort)
SlowSocket(int cps, String host, int port)
SlowSocket(int cps)
Added for use by SlowHC4SocketFactory.
-
Method Summary
Modifier and Type Method Description OutputStream
getOutputStream()
InputStream
getInputStream()
-
Methods inherited from class java.net.Socket
bind, close, connect, getChannel, getInetAddress, getKeepAlive, getLocalAddress, getLocalPort, getLocalSocketAddress, getOOBInline, getOption, getPort, getReceiveBufferSize, getRemoteSocketAddress, getReuseAddress, getSendBufferSize, getSoLinger, getSoTimeout, getTcpNoDelay, getTrafficClass, isBound, isClosed, isConnected, isInputShutdown, isOutputShutdown, sendUrgentData, setKeepAlive, setOOBInline, setOption, setPerformancePreferences, setReceiveBufferSize, setReuseAddress, setSendBufferSize, setSoLinger, setSoTimeout, setSocketImplFactory, setTcpNoDelay, setTrafficClass, shutdownInput, shutdownOutput, supportedOptions, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
SlowSocket
SlowSocket(int cps, String host, int port, InetAddress localAddress, int localPort, int timeout)
-
SlowSocket
SlowSocket(int cps, String host, int port, InetAddress localAddr, int localPort)
- Parameters:
cps
- characters per secondhost
- hostnameport
- portlocalAddr
- local addresslocalPort
- local port
-
SlowSocket
SlowSocket(int cps, String host, int port)
- Parameters:
cps
- characters per secondhost
- hostnameport
- port
-
SlowSocket
SlowSocket(int cps)
Added for use by SlowHC4SocketFactory.- Parameters:
cps
- characters per second
-
-
Method Detail
-
getOutputStream
OutputStream getOutputStream()
-
getInputStream
InputStream getInputStream()
-
-
-
-