register_services (Net::SSH::Transport::Compress)

    # File lib/net/ssh/transport/compress/services.rb, line 24
            def register_services( parent )

              # These services all go in their own namespace.
              parent.namespace_define :compress do |b|
                b.zlib_compressor do
                  require 'net/ssh/transport/compress/zlib-compressor'
                  ZLibCompressor.new
                end

                b.none_compressor do
                  require 'net/ssh/transport/compress/none-compressor'
                  NoneCompressor.new
                end

                b.zlib_decompressor do
                  require 'net/ssh/transport/compress/zlib-decompressor'
                  ZLibDecompressor.new
                end

                b.none_decompressor do
                  require 'net/ssh/transport/compress/none-decompressor'
                  NoneDecompressor.new
                end

                # Add the compressor services to the hash of available
                # compression algorithms.
                b.compression_algorithms.update(
                  "zlib" => b.zlib_compressor,
                  "none" => b.none_compressor
                )

                # Add the decompressor services to the hash of available
                # decompression algorithms.
                b.decompression_algorithms.update(
                  "zlib" => b.zlib_decompressor,
                  "none" => b.none_decompressor
                )
              end
            end