P
pmr16366
I have a simple server running under Windows using c#
Im trying to connect to it using a ruby client but get the following
error
ai_family not supported. (SocketError)
The c# server is using 'InterNetwork' which means " Address for IP
version 4."
( from
http://msdn.microsoft.com/library/e...socketsaddressfamilyclasstopic.asp?frame=true
)
I can connect fine using a c# client.
The only posts I can see to fix this are several years old and involve
recompiling ruby ( which isnt an option for me)
My client code is:
t = TCPSocket.new( 'pc_name' , 399)
puts t.addr.inspect
puts t.peeraddr.inspect
data = t.recvfrom(30)
I get the error on the last line.
Heres the ful output
["AF_INET", 4281, "pc_name.mshome.net", "192.168.0.100"]
["AF_INET", 399, "pc_name.mshome.net", "192.168.0.100"]
J:/sender.rb:11:in `recvfrom': getnameinfo: ai_family not supported.
(SocketError)
Thanks
Paul
Im trying to connect to it using a ruby client but get the following
error
ai_family not supported. (SocketError)
The c# server is using 'InterNetwork' which means " Address for IP
version 4."
( from
http://msdn.microsoft.com/library/e...socketsaddressfamilyclasstopic.asp?frame=true
)
I can connect fine using a c# client.
The only posts I can see to fix this are several years old and involve
recompiling ruby ( which isnt an option for me)
My client code is:
t = TCPSocket.new( 'pc_name' , 399)
puts t.addr.inspect
puts t.peeraddr.inspect
data = t.recvfrom(30)
I get the error on the last line.
Heres the ful output
["AF_INET", 4281, "pc_name.mshome.net", "192.168.0.100"]
["AF_INET", 399, "pc_name.mshome.net", "192.168.0.100"]
J:/sender.rb:11:in `recvfrom': getnameinfo: ai_family not supported.
(SocketError)
Thanks
Paul