「腾达签名」 - 解决苹果app/ipa/tf/ios企业超级签名下载掉签难题「腾达签名」

专注IOS苹果签名内测
解决APP签名下载难题

Address family not supported by protocol - connect(2)的解决办法

Address family not supported by protocol - connect(2)的解决办法-「腾达签名」

ruby的socket错误:

Errno::EAFNOSUPPORT: Address family not supported by protocol - connect(2)

原因解析:地址集不被支持

解决方法:改成ip或者修改/etc/hosts文件

require 'socket'
include Socket::Constants
puts "*"*50
puts AF_INET
puts SOCK_STREAM
puts "*"*50
socket = Socket.new(AF_INET, SOCK_STREAM, 0)
sockaddr = Socket.pack_sockaddr_in(2202, 'localhost') #改成127.0.0.1
socket.connect(sockaddr)
socket.puts "Hello from script 2."
puts "The server said, '#{socket.readline.chomp}'"
socket.close

苹果签名www.nanti.net

企业签名www.nanti.net

超级签名www.nanti.net

TF签名www.nanti.net

Address family not supported by protocol - connect(2)的解决办法-「腾达签名」
本原创文章未经允许不得转载 | 当前页面:「腾达签名」 » Address family not supported by protocol - connect(2)的解决办法

评论