Skip to content

implemented getaddrinfo addr method. #10

Closed
wants to merge 5 commits into from

2 participants

@matsumoto-r
UV::getaddrinfo("api.twitter.com", "http") do |x, a|
  if a
    puts "addr: #{a.addr}"  #=>  addr: 199.59.150.41
  end
end

UV::run()
@mattn
Owner
mattn commented Dec 31, 2012

addrオブジェクトはUV:Ip4Addrオブジェクトにして、to_sにアドレス形式を出す方式にしようと思っていたので(addrをそのままbind等に渡せるように)、少し検討させて下さい。

@matsumoto-r

了解しました。

@mattn
Owner
mattn commented Jan 17, 2013

最新でaddrinfoを実装したので、すみませんが閉じます。

@mattn mattn closed this Jan 17, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.