module Protobuf::Rpc::Connectors::Common

def post_init

Setup the read buffer for data coming back
def post_init
  # Setup an object for reponses without callbacks
  @data = nil
  log_debug "[#{log_signature}] Post init, new read buffer created"
  @buffer = Protobuf::Rpc::Buffer.new(:read)
  _send_request unless error?
  log_debug "[#{log_signature}] Post init, new read buffer created just sent"
rescue
  fail(:RPC_ERROR, 'Connection error: %s' % $!.message)
end