class Protocol::HTTP::Peer
Provide a well defined, cached representation of a peer (address).
def self.for(io)
Create a new peer object for the given IO object, using the remote address if available.
def self.for(io) if address = io.remote_address return new(address) end end
def initialize(address)
Initialize the peer with the given address.
def initialize(address) @address = address if address.ip? @ip_address = @address.ip_address end end