Class: MQRPC::Functions::Ping

Inherits:
Object
  • Object
show all
Defined in:
lib/mqrpc/functions/ping.rb

Instance Method Summary collapse

Instance Method Details

#PingRequestHandler(request) {|response| ... } ⇒ Object

handle MQRPC::Messages::PingRequest, :PingRequestHandler

Yields:

  • (response)


7
8
9
10
11
12
13
# File 'lib/mqrpc/functions/ping.rb', line 7

def PingRequestHandler(request)
  MQRPC::logger.debug "received PingRequest (#{request.pingdata})"
  response = MQRPC::Messages::PingResponse.new
  response.id = request.id
  response.pingdata = request.pingdata
  yield response
end