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.6.12 lib/protobuf/rpc/connector.rb
protobuf-3.6.11 lib/protobuf/rpc/connector.rb
protobuf-3.6.10 lib/protobuf/rpc/connector.rb
protobuf-3.7.0.pre2 lib/protobuf/rpc/connector.rb
protobuf-3.6.9 lib/protobuf/rpc/connector.rb
protobuf-3.7.0.pre1 lib/protobuf/rpc/connector.rb
protobuf-3.7.0.pre0 lib/protobuf/rpc/connector.rb
protobuf-3.6.7 lib/protobuf/rpc/connector.rb
protobuf-3.6.6 lib/protobuf/rpc/connector.rb
protobuf-3.6.2 lib/protobuf/rpc/connector.rb
protobuf-3.6.1 lib/protobuf/rpc/connector.rb
protobuf-3.6.0 lib/protobuf/rpc/connector.rb
protobuf-3.5.5 lib/protobuf/rpc/connector.rb
protobuf-3.5.4 lib/protobuf/rpc/connector.rb
protobuf-3.5.3 lib/protobuf/rpc/connector.rb
protobuf-3.5.2 lib/protobuf/rpc/connector.rb
protobuf-3.5.1 lib/protobuf/rpc/connector.rb
prepor-protobuf-3.5.1 lib/protobuf/rpc/connector.rb
prepor-protobuf-3.5.0 lib/protobuf/rpc/connector.rb
protobuf-3.5.0 lib/protobuf/rpc/connector.rb