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

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • 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 second
        host - hostname
        port - port
        localAddr - local address
        localPort - local port
      • SlowSocket

        SlowSocket(int cps, String host, int port)
        Parameters:
        cps - characters per second
        host - hostname
        port - port
      • SlowSocket

        SlowSocket(int cps)
        Added for use by SlowHC4SocketFactory.
        Parameters:
        cps - characters per second