当前位置: 技术问答>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试试。