-
获得本机以及指定域名的ipv4和ipv6地址
应用背景本代码可以用来实现获取本机以及指定域名的ipv4地址以及ipv6地址,代码分了两个c++文件,并非写在一起,使用时可以注释掉其中一个或是新建项目将其中一个c++文件剪切进去。关键技术
对于本地的ip地址我们只需要使用WinSocket继承的Berkeley Socket API里面的函数gethostbyname()通过名字获得主机信息,然后再显示出其ip地址即可,对于输出ipv6地址需将地址族改为AF_INET6.进一步得到ipv6地址。而要得到指定域名的ip地址时需要对一个地址同样使用gethostbyname()获得信息,再进行显示。
- 2022-07-04 18:45:02下载
- 积分:1
-
CC2430的光传感器
显示来自连接到cc2530 MCU的传感器的3轴数据的加速计代码。加速计值从传感器读取,并随方向而变化。
- 2022-02-25 15:02:00下载
- 积分:1
-
This is a bank management system, finally found his hope to
这是一个银行管理系统,好不容易找到的,希望能通过-This is a bank management system, finally found his hope to
- 2022-10-05 12:40:04下载
- 积分:1
-
the method of calling functions of matlab 6.5.1 with csharp
C#调用matlab6.5.1函数的方法-the method of calling functions of matlab 6.5.1 with csharp
- 2022-05-26 22:31:03下载
- 积分:1
-
merger EXE and DLL files. So have an executable file.
合并EXE和DLL文件.使产生一个可执行文件.-merger EXE and DLL files. So have an executable file.
- 2022-03-17 17:36:54下载
- 积分:1
-
This is a high
这是一个高级的指纹分算法析的源代码,希望大家喜欢-This is a high-level sub-algorithm fingerprint analysis of the source code, I hope everyone likes
- 2022-05-22 00:54:23下载
- 积分:1
-
就是C++的试验报告,可能对你有帮助的,希望亲们喜欢
就是C++的试验报告,可能对你有帮助的,希望亲们喜欢-Is the C++ the test report may be helpful to you, I hope they enjoy the pro-
- 2022-05-08 18:22:33下载
- 积分:1
-
运用HTML5中的canvas绘制图表
运用HTML5中的canvas画布绘制图表,并能够在各个浏览器中打开显示。适用于PC端,也适用于移动端,既可以在Android系统中打开也可以在iOS中打开。
- 2022-08-11 01:07:58下载
- 积分:1
-
refer loop (), the realization of my own my_atoi (), is very good :)
参阅atoi()后,实现我自己的my_atoi(),很不错的:)-refer loop (), the realization of my own my_atoi (), is very good :)
- 2022-04-18 08:56:21下载
- 积分:1
-
这是一个定时关机的源代码自动关机程序,你只需设置一个时间点,便可实现你意想不到功能...
这是一个定时关机的源代码自动关机程序,你只需设置一个时间点,便可实现你意想不到功能- This is a fixed time Guan Ji source code automatic pass machine
procedure, you only must establish a time spot, then may realize your
opinion not to be able to think of the function
- 2022-07-20 18:01:37下载
- 积分:1