Method: Reel::ConnectionMixin#remote_host

Defined in:
lib/reel/mixins.rb

#remote_hostObject

Obtain the hostname of the remote connection



18
19
20
21
# File 'lib/reel/mixins.rb', line 18

def remote_host
  # NOTE: Celluloid::IO does not yet support non-blocking reverse DNS
  socket.peeraddr(true)[2]
end