public class SlowSocket
extends java.net.Socket
| Constructor and Description |
|---|
SlowSocket(int cps)
Added for use by SlowHC4SocketFactory.
|
SlowSocket(int cps,
java.lang.String host,
int port) |
SlowSocket(int cps,
java.lang.String host,
int port,
java.net.InetAddress localAddr,
int localPort) |
SlowSocket(int cps,
java.lang.String host,
int port,
java.net.InetAddress localAddress,
int localPort,
int timeout) |
| Modifier and Type | Method and Description |
|---|---|
java.io.InputStream |
getInputStream() |
java.io.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, toStringpublic SlowSocket(int cps,
java.lang.String host,
int port,
java.net.InetAddress localAddress,
int localPort,
int timeout)
throws java.io.IOException
java.io.IOExceptionpublic SlowSocket(int cps,
java.lang.String host,
int port,
java.net.InetAddress localAddr,
int localPort)
throws java.io.IOException
cps - characters per secondhost - hostnameport - portlocalAddr - local addresslocalPort - local portjava.io.IOException - if an I/O error occurs during initializationjava.lang.IllegalArgumentException - if cps <= 0, or if the port or
localPort values lie outside of the allowed
range between 0 and 65535public SlowSocket(int cps,
java.lang.String host,
int port)
throws java.net.UnknownHostException,
java.io.IOException
cps - characters per secondhost - hostnameport - portjava.net.UnknownHostException - if the name of the host can not be determined automaticallyjava.io.IOException - if an I/O error occurs during initializationjava.lang.IllegalArgumentException - if cps <= 0, or if the port or
localPort values lie outside of the allowed
range between 0 and 65535public SlowSocket(int cps)
cps - characters per secondpublic java.io.OutputStream getOutputStream()
throws java.io.IOException
getOutputStream in class java.net.Socketjava.io.IOExceptionpublic java.io.InputStream getInputStream()
throws java.io.IOException
getInputStream in class java.net.Socketjava.io.IOExceptionCopyright © 1998-2018 Apache Software Foundation. All Rights Reserved.