Class: Riak::Client::BeefcakeProtobuffsBackend::BeefcakeSocket Private
- 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
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, = {}) return start_tcp_socket(host, port, ) if [:authentication].blank? return start_tls_socket(host, port, ) end |