专注收集记录技术开发学习笔记、技术难点、解决方案
网站信息搜索 >> 请输入关键词:
您当前的位置: 首页 > AIX

socket编程connect的有关问题

发布时间:2011-06-27 19:04:15 文章来源:www.iduyao.cn 采编人员:星星草
socket编程connect的问题
我写了一个socket通信的程序,让服务器端在开发板上运行,客户端在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试试。

友情提示:
信息收集于互联网,如果您发现错误或造成侵权,请及时通知本站更正或删除,具体联系方式见页面底部联系我们,谢谢。

其他相似内容:

热门推荐: