Sha256: d2d4d868bcebf14181863d3558afa3594833015a4e3fed308ce28f94178f3e10

Contents?: true

Size: 381 Bytes

Versions: 43

Compression:

Stored size: 381 Bytes

Contents

require 'protobuf'

module Protobuf
  module Rpc
    class Connector

      # Returns a connector class for the pre-defined connector_type.
      def self.connector_for_client
        case ::Protobuf.connector_type
        when :zmq then
          ::Protobuf::Rpc::Connectors::Zmq
        else
          ::Protobuf::Rpc::Connectors::Socket
        end
      end

    end
  end
end

Version data entries

43 entries across 43 versions & 2 rubygems

Version Path
protobuf-3.0.0 lib/protobuf/rpc/connector.rb
protobuf-3.0.0.rc2 lib/protobuf/rpc/connector.rb
protobuf-3.0.0.rc1 lib/protobuf/rpc/connector.rb