Package com.aoindustries.net
Class BandwidthLimitingTunnelHandlerUpstreamThread
- java.lang.Object
-
- com.aoindustries.net.BandwidthLimitingTunnelHandlerThread
-
- com.aoindustries.net.BandwidthLimitingTunnelHandlerUpstreamThread
-
- All Implemented Interfaces:
BitRateProvider,Runnable
public class BandwidthLimitingTunnelHandlerUpstreamThread extends BandwidthLimitingTunnelHandlerThread
Handles the upstream bandwidth for one connection for aBandwidthLimitingTunnel.- Author:
- AO Industries, Inc.
- See Also:
BandwidthLimitingTunnelHandler,BandwidthLimitingTunnel
-
-
Field Summary
-
Fields inherited from interface com.aoindustries.io.BitRateProvider
MINIMUM_BIT_RATE
-
-
Constructor Summary
Constructors Constructor Description BandwidthLimitingTunnelHandlerUpstreamThread(boolean verbose, Long upstream_bandwidth, Socket listenSocket, Socket connectSocket)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected StringgetDirection()protected InputStreamgetInputStream(Socket listenSocket, Socket connectSocket)protected OutputStreamgetOutputStream(Socket listenSocket, Socket connectSocket)-
Methods inherited from class com.aoindustries.net.BandwidthLimitingTunnelHandlerThread
getBitRate, getBlockSize, run, start
-
-
-
-
Method Detail
-
getDirection
protected String getDirection()
- Specified by:
getDirectionin classBandwidthLimitingTunnelHandlerThread
-
getOutputStream
protected OutputStream getOutputStream(Socket listenSocket, Socket connectSocket) throws IOException
- Specified by:
getOutputStreamin classBandwidthLimitingTunnelHandlerThread- Throws:
IOException
-
getInputStream
protected InputStream getInputStream(Socket listenSocket, Socket connectSocket) throws IOException
- Specified by:
getInputStreamin classBandwidthLimitingTunnelHandlerThread- Throws:
IOException
-
-