When I try this code,
require "socket"
begin
p Socket.ip_address_list
rescue Exception => e
p "#{e.class} #{e.message}"
end
Code runs with output this
"SocketError getnameinfo: Either the application has not called WSAStartup, or WSAStartup failed. "
I'm running code with $ LOADED_FEATURES
["enumerator.so", "thread.rb", "rational.so", "complex.so", "C:/Ruby23-x64/lib/ruby/2.3.0/x64-mingw32/socket.so", "C:/Ruby23-x64/lib/ruby/2.3.0/x64-mingw32/io/wait.so", "C:/Ruby23-x64/lib/ruby/2.3.0/socket.rb"]
How i can fix that? Please Help Me...
Note : I run the code with c++ calling the ruby code