# File lib/net/sftp/protocol/01/services.rb, line 19
  def register_services( container )
    container.namespace_define :v_01 do |ns|

      # The packet assistant to use for formatting SFTP packets.
      ns.packet_assistant do |c,|
        require 'net/sftp/protocol/01/packet-assistant'
        PacketAssistant.new( c[:transport][:buffers],
                             c[:driver] )
      end

      # The attribute factory to use to obtain attribute object instances.
      ns.attr_factory do |c,|
        require 'net/sftp/protocol/01/attributes'
        Attributes.init( c[:transport][:buffers] )
      end

      # The version implementation to use.
      ns.impl do |c,|
        require 'net/sftp/protocol/01/impl'
        Impl.new( c[:transport][:buffers],
                  c[:driver], c[:packet_assistant],
                  c[:attr_factory] )
      end

    end
  end