Method: Rex::Post::Channel::SocketAbstraction::SocketInterface#getpeername

Defined in:
lib/rex/post/channel/socket_abstraction.rb

#getpeernameObject



34
35
36
37
38
39
40
# File 'lib/rex/post/channel/socket_abstraction.rb', line 34

def getpeername
  return super if !channel

  maddr = channel.params.peerhost
  mport = channel.params.peerport
  ::Socket.sockaddr_in(mport, maddr)
end