This class provides methods for interacting with a TCP client connection.
Returns local information (host + port) in host:port format.
# File lib/rex/socket/tcp.rb, line 65 def localinfo if (pi = getlocalname) return pi[1] + ':' + pi[2].to_s end end
Returns peer information (host + port) in host:port format.
# File lib/rex/socket/tcp.rb, line 56 def peerinfo if (pi = getpeername) return pi[1] + ':' + pi[2].to_s end end
Generated with the Darkfish Rdoc Generator 2.