org.apache.jmeter.util

Class SlowSocket


public class SlowSocket
extends Socket

"Slow" (non-SSL) socket implementation to emulate dial-up modems etc

Constructor Summary

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)

Method Summary

InputStream
getInputStream()
OutputStream
getOutputStream()

Constructor Details

SlowSocket

public SlowSocket(int cps,
                  String host,
                  int port)
            throws UnknownHostException,
                   IOException
Parameters:
cps - characters per second
host - hostname
port - port

SlowSocket

public SlowSocket(int cps,
                  String host,
                  int port,
                  InetAddress localAddr,
                  int localPort)
            throws IOException
Parameters:
cps - characters per second
host - hostname
port - port
localAddr - local address
localPort - local port

SlowSocket

public SlowSocket(int cps,
                  String host,
                  int port,
                  InetAddress localAddress,
                  int localPort,
                  int timeout)
            throws IOException

Method Details

getInputStream

public InputStream getInputStream()
            throws IOException

getOutputStream

public OutputStream getOutputStream()
            throws IOException

Copyright © 1998-2010 Apache Software Foundation. All Rights Reserved.