本文介绍了我在哪里ARPA / inet.h?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

问题是非常简单的。
我需要一个工具来转换的char * 来IP地址,并在

Question is really simple.I need a tool to convert char* to ip adress and use it in

sockaddr_in.s_addr

ARPA / inet.h具有 inet_addr()的功能,但我不知道我是否已经有此文件在MS VS 2010安装的地方或者我应该得到它在别处

arpa/inet.h has inet_addr() function, but I am not sure if I already have this file somewhere in MS VS 2010 installation or should I get it elsewhere.

推荐答案

Win32的提供自己的实现套接字API(Winsock的),使用稍有不同的头。的

Win32 provides its own implementation of the sockets API (Winsock) which uses slightly different headers.

从:

头Winsock2.h

这篇关于我在哪里ARPA / inet.h?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-23 20:00