Class BandwidthLimitingTunnel

  • All Implemented Interfaces:
    Runnable

    public class BandwidthLimitingTunnel
    extends Object
    implements Runnable
    Provides a tunnel for TCP sockets that limits the bandwidth for both upstream and downstream bandwidth. This was developed for the purpose of limiting the upload bandwidth consumed during CVS operations from our main office in order to keep the network responsive. However, it is general purpose and might find additional uses.
    Author:
    AO Industries, Inc.
    • Constructor Detail

      • BandwidthLimitingTunnel

        public BandwidthLimitingTunnel​(boolean verbose,
                                       String listen_address,
                                       int listen_port,
                                       String connect_address,
                                       int connect_port,
                                       Long upstream_bandwidth,
                                       Long downstream_bandwidth)
    • Method Detail

      • main

        public static void main​(String[] args)
      • run

        public void run()
        Specified by:
        run in interface Runnable