Module com.aoapps.hodgepodge
Package com.aoapps.hodgepodge.net
Class BandwidthLimitingTunnelHandlerDownstreamThread
java.lang.Object
com.aoapps.hodgepodge.net.BandwidthLimitingTunnelHandlerThread
com.aoapps.hodgepodge.net.BandwidthLimitingTunnelHandlerDownstreamThread
- All Implemented Interfaces:
BitRateProvider
,Runnable
public class BandwidthLimitingTunnelHandlerDownstreamThread
extends BandwidthLimitingTunnelHandlerThread
Handles the downstream bandwidth for one connection for a
BandwidthLimitingTunnel
.- Author:
- AO Industries, Inc.
- See Also:
-
Field Summary
Fields inherited from interface com.aoapps.hodgepodge.io.BitRateProvider
MINIMUM_BIT_RATE
-
Constructor Summary
ConstructorDescriptionBandwidthLimitingTunnelHandlerDownstreamThread
(boolean verbose, Long downstreamBandwidth, Socket listenSocket, Socket connectSocket) -
Method Summary
Modifier and TypeMethodDescriptionprotected String
protected InputStream
getInputStream
(Socket listenSocket, Socket connectSocket) protected OutputStream
getOutputStream
(Socket listenSocket, Socket connectSocket) Methods inherited from class com.aoapps.hodgepodge.net.BandwidthLimitingTunnelHandlerThread
getBitRate, getBlockSize, run, start
-
Constructor Details
-
BandwidthLimitingTunnelHandlerDownstreamThread
-
-
Method Details
-
getDirection
- Specified by:
getDirection
in classBandwidthLimitingTunnelHandlerThread
-
getOutputStream
protected OutputStream getOutputStream(Socket listenSocket, Socket connectSocket) throws IOException - Specified by:
getOutputStream
in classBandwidthLimitingTunnelHandlerThread
- Throws:
IOException
-
getInputStream
- Specified by:
getInputStream
in classBandwidthLimitingTunnelHandlerThread
- Throws:
IOException
-