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.


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

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