-
获得本机以及指定域名的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
-
不我不描述
no i have no describe
- 2022-07-15 12:06:47下载
- 积分:1
-
c++ 高质量编程指南,适合c++初级人员向高质量编程的提高
c++ 高质量编程指南,适合c++初级人员向高质量编程的提高-c++ high-quality programming guidelines, suitable for c++ of junior staff to improve the quality of programming
- 2022-12-23 11:30:04下载
- 积分:1
-
Calculator the screen.
计算屏幕的一点分布的, 可以看出屏幕的尺寸。-Calculator the screen.
- 2022-03-21 14:06:52下载
- 积分:1
-
Qt进制自动转换器
Qt进制自动转换器,界面美化,功能齐全,输入格式控制,完成二、八、十、十六进制以及ASCII码转换,仅用于学习参考
- 2022-04-29 09:07:26下载
- 积分:1
-
商务新星.NET4.0源码
源码(C# 和SQL Server 存储过程,约15万行)已经发布,并提供免费下载。
在此告之大家,此源码可作学习研究之用,请不要用作商业用途。如欲用于商业用途,请事先与我公司联系。
- 2022-07-21 05:13:01下载
- 积分:1
-
使用VB编写自定义事件,及自定义事件的调用实例。
使用VB编写自定义事件,及自定义事件的调用实例。-The use of VB to write custom events, and custom event called an instance.
- 2022-05-19 06:43:37下载
- 积分:1
-
可以用devcpp编译,可以测试文件,字符的md5值
可以用devcpp编译,可以测试文件,字符的md5值-Can be devcpp compile, you can test the file, the character of the md5 value
- 2022-12-25 22:35:03下载
- 积分:1
-
This is achieved using the reference count of a calculator that can be as basic...
这个是用引用计数实现的一个计算器,可以进行加减乘除等基本运算,同时实现了开方运算,自己扩展了一个操作符。如果需要其他方式的计算,可以方便的自己添加-This is achieved using the reference count of a calculator that can be as basic arithmetic computation. while achieving its-rooting their extended an operator. If other forms of computing, can easily add their own
- 2022-02-28 14:21:36下载
- 积分:1
-
This procedure is mainly developed in the WinCE environment SQLCE database progr...
这个程序主要是在WinCE环境下开发访问SQLCE数据库程序的例子程序,其中有对相关功能进行了组件封装,采用套间线程模型。其中ALTCOMM项目是封装的组件,WinMain项目是调用程序。-This procedure is mainly developed in the WinCE environment SQLCE database program to visit examples of the procedure, which has the relevant functions of the component package, the use of threading model suites. One project is ALTCOMM package components, WinMain is the procedure call.
- 2022-07-19 04:51:00下载
- 积分:1