PortScanner 我运行时遇到的常见的错误
来源:互联网 发布:数据库第三范式 编辑:程序博客网 时间:2024/05/30 23:02
PortScanner下载地址:http://www.codeguru.com/cpp/i-n/network/tcpip/article.php/c7535/Port-Scanner.htm
环境:vc6.0, xp系统
错误一:Iphlpapi.h 不存在的问题,
解决方法:你可以在csdn里下载,再在目录里加载,包括库文件和include 文件,
错误二:error C2664: 'pcap_next_ex': cannot convert parameter 3 from 'unsigned > char ** ' to 'const unsigned char *
解决方法:把函数pcap_next_ex的第三个参数的定义前加const 就可以。
Yeah, I just got the same problem, so I changed the declaration:
"u_char *pkt_data;" to "const u_char *pkt_data;"
It works just fine. However, I dont know if it is the correct way.
Given that the "const" in the declaration of "pcap_next_ex()" is an
indication that there's no guarantee that you'll be allowed to write
to the packet data or that Bad Things won't happen if you write to it
- i.e., it's an indication that you shouldn't write to it (if you
want to modify the packet data, copy it and modify the copy) -
declaring the pointer to the packet data as a pointer to "const
u_char" is the right thing to do.
- PortScanner 我运行时遇到的常见的错误
- 常见的运行错误
- 我的常见错误
- KEIL编程时遇到的常见错误
- (我总结的实用主义)Loadrunner运行常见错误
- (我总结的实用主义)Loadrunner运行常见错误
- SSH 遇到的常见 错误
- Hibernate运行时遇到的错误小结
- 运行Java web时遇到的错误
- Java运行时遇到的一些错误
- Python运行时的常见错误
- PHP写的端口查询程序 Portscanner
- C#版的端口扫描器(PortScanner)
- C#版的端口扫描器(PortScanner)
- hadoop运行常见的错误
- ICE 的常见运行错误
- 我遇到的.NET错误
- 自己遇到的hibernate常见错误
- VC/MFC中使用WPF
- .3dsMax中的建模准则与面数精简技巧
- 最长递增子序列(LIS)
- sip消息及格式说明
- ctrl+shift+enter
- PortScanner 我运行时遇到的常见的错误
- 一些重要的算法
- WCF 服务、托管、客户端 简单案例
- 关于php基础学习笔记一
- svn更新报错 remains in tree-conflict
- 控件设置为focusable为true后要点击第2下才能触发OnClick事件
- simplejson的安装和使用
- android 模仿qq登录界面EditText下拉框记住账号和密码 editText+popupwindow+sqlite方式实现(附源码)
- 到底怎么样才叫看书?——上篇