lib/async/io/host_endpoint.rb in async-io-1.23.1 vs lib/async/io/host_endpoint.rb in async-io-1.23.3

- old
+ new

@@ -33,9 +33,13 @@ nodename, service, family, socktype, protocol, flags = @specification "\#<#{self.class} name=#{nodename.inspect} service=#{service.inspect} family=#{family.inspect} type=#{socktype.inspect} protocol=#{protocol.inspect} flags=#{flags.inspect}>" end + def address + @specification + end + def hostname @specification.first end # Try to connect to the given host by connecting to each address in sequence until a connection is made.