C
Chris Morris
I'm tinkering around with Borges on my XP box and one of the first
things it tries to do out of the chute is:
server = WEBrick::HTTPServer.new(options)
server.listen('::', 7000)
The listen method inside WEBrick is:
def listen(address, port)
res = Socket::getaddrinfo(address, port,
Socket::AF_UNSPEC, # address family
Socket::SOCK_STREAM, # socket type
0, # protocol
Socket::AI_PASSIVE) # flag
I assume '::' is shorthand for something, localhost if I had to guess
... but Googling for :: doesn't work so I've no idea where to start
looking. This is raised as an error:
c:/ruby/lib/ruby/1.8/webrick/server.rb:77:in `getaddrinfo': getaddrinfo:
no addr
ess associated with hostname. (SocketError)
from c:/ruby/lib/ruby/1.8/webrick/server.rb:77:in `listen'
from C:/ruby/lib/ruby/site_ruby/1.8/Borges/WEBrick.rb:67:in `create'
from C:/ruby/lib/ruby/site_ruby/1.8/Borges/WEBrick.rb:77:in `start'
from C:/ruby/lib/ruby/site_ruby/1.8/Borges/WEBrick.rb:88
Can anyone help me here?
things it tries to do out of the chute is:
server = WEBrick::HTTPServer.new(options)
server.listen('::', 7000)
The listen method inside WEBrick is:
def listen(address, port)
res = Socket::getaddrinfo(address, port,
Socket::AF_UNSPEC, # address family
Socket::SOCK_STREAM, # socket type
0, # protocol
Socket::AI_PASSIVE) # flag
I assume '::' is shorthand for something, localhost if I had to guess
... but Googling for :: doesn't work so I've no idea where to start
looking. This is raised as an error:
c:/ruby/lib/ruby/1.8/webrick/server.rb:77:in `getaddrinfo': getaddrinfo:
no addr
ess associated with hostname. (SocketError)
from c:/ruby/lib/ruby/1.8/webrick/server.rb:77:in `listen'
from C:/ruby/lib/ruby/site_ruby/1.8/Borges/WEBrick.rb:67:in `create'
from C:/ruby/lib/ruby/site_ruby/1.8/Borges/WEBrick.rb:77:in `start'
from C:/ruby/lib/ruby/site_ruby/1.8/Borges/WEBrick.rb:88
Can anyone help me here?