Helper methods to be included in EventMachine::Connection classes
@author Tasos "Zapotek" Laskos <tasos.laskos@gmail.com>
@return [String] IP address of the client
# File lib/arachni/rpc/em/connection_utilities.rb, line 21 def peer_ip_addr begin if peername = get_peername Socket.unpack_sockaddr_in( peername )[1] else 'n/a' end rescue 'n/a' end end
[Validate]
Generated with the Darkfish Rdoc Generator 2.