Class: Riak::Client::BeefcakeProtobuffsBackend::BeefcakeSocket Private

Inherits:
Object
  • Object
show all
Includes:
Riak::Client::BeefcakeMessageCodes
Defined in:
lib/riak/client/beefcake/socket.rb

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

A factory class for making sockets, whether secure or not

Defined Under Namespace

Classes: TlsInitiator

Constant Summary

Constants included from Riak::Client::BeefcakeMessageCodes

Riak::Client::BeefcakeMessageCodes::CODE_TO_MESSAGE, Riak::Client::BeefcakeMessageCodes::MESSAGE_TO_CODE

Class Method Summary collapse

Methods included from Riak::Client::BeefcakeMessageCodes

[], index

Class Method Details

.new(host, port, options = {}) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



16
17
18
19
# File 'lib/riak/client/beefcake/socket.rb', line 16

def new(host, port, options = {})
  return start_tcp_socket(host, port, options) if options[:authentication].blank?
  return start_tls_socket(host, port, options)
end