当前位置: 技术问答>linux和unix
socket编程connect的问题
来源: 互联网 发布时间:2017-02-03
本文导语: 我写了一个socket通信的程序,让服务器端在开发板上运行,客户端在PC机上运行,结果客户端出现了 connect:address family not supported by protocol;请问这是什么原因?? 服务器端的代码我用了交叉编译工具编译,在开...
我写了一个socket通信的程序,让服务器端在开发板上运行,客户端在PC机上运行,结果客户端出现了
connect:address family not supported by protocol;请问这是什么原因??
服务器端的代码我用了交叉编译工具编译,在开发板上能够问题,我先运行开发板的服务器端阻塞等待。。但是我一到PC机上运行客户端就出现了上面的问题;麻烦各位大侠帮帮忙了。。万分感谢
connect:address family not supported by protocol;请问这是什么原因??
服务器端的代码我用了交叉编译工具编译,在开发板上能够问题,我先运行开发板的服务器端阻塞等待。。但是我一到PC机上运行客户端就出现了上面的问题;麻烦各位大侠帮帮忙了。。万分感谢
|
Error Message:
Address family not supported by protocol familytext
Explanation:
Addresses used for this configuration are not compatible with the protocol used for the connection process.
User Action:
Contact your network administrator to verify the type of protocol that is used for the network. You may have to load and configure an additional protocol to be compatible with the network you are trying to connect to.
修改协sin_family试试。
Address family not supported by protocol familytext
Explanation:
Addresses used for this configuration are not compatible with the protocol used for the connection process.
User Action:
Contact your network administrator to verify the type of protocol that is used for the network. You may have to load and configure an additional protocol to be compatible with the network you are trying to connect to.
修改协sin_family试试。
您可能感兴趣的文章:
本站(WWW.)旨在分享和传播互联网科技相关的资讯和技术,将尽最大努力为读者提供更好的信息聚合和浏览方式。
本站(WWW.)站内文章除注明原创外,均为转载、整理或搜集自网络。欢迎任何形式的转载,转载请注明出处。
本站(WWW.)站内文章除注明原创外,均为转载、整理或搜集自网络。欢迎任何形式的转载,转载请注明出处。