文件名称:NPort
-
所属分类:
- 标签属性:
- 上传时间:2014-05-29
-
文件大小:35.47kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
VC实现的类似Windows Netstat命令查看开放端口的源码,并不是一个完整的程序。NPort.cpp : 显示端口及对应的文件名,相当于Netstat -noa命令. 适用于XP及较高级版本.所用的iphlpapi.dll中的函数原型定义,生成IP地址字符串。以下为与TCP相关的结构:
typedef struct tagMIB_TCPEXROW{
DWORD dwState // 连接状态.
DWORD dwLocalAddr // 本地计算机地址.
DWORD dwLocalPort // 本地计算机端口.
DWORD dwRemoteAddr // 远程计算机地址.
DWORD dwRemotePort // 远程计算机端口.
DWORD dwProcessId
} MIB_TCPEXROW, *PMIB_TCPEXROW -VC to achieve a similar Windows Netstat command to check open ports of the source, not a complete program. NPort.cpp: display port and the corresponding file name, which is equivalent Netstat-noa command for XP and higher versions of the definition of the function prototype iphlpapi.dll used in generating IP address string.. The following is the structure associated with the TCP:
typedef struct tagMIB_TCPEXROW {
DWORD dwState // connection status.
DWORD dwLocalAddr // local computer address.
DWORD dwLocalPort // local computer port.
DWORD dwRemoteAddr // remote computer address.
DWORD dwRemotePort // remote computer port.
DWORD dwProcessId
} MIB_TCPEXROW,* PMIB_TCPEXROW
typedef struct tagMIB_TCPEXROW{
DWORD dwState // 连接状态.
DWORD dwLocalAddr // 本地计算机地址.
DWORD dwLocalPort // 本地计算机端口.
DWORD dwRemoteAddr // 远程计算机地址.
DWORD dwRemotePort // 远程计算机端口.
DWORD dwProcessId
} MIB_TCPEXROW, *PMIB_TCPEXROW -VC to achieve a similar Windows Netstat command to check open ports of the source, not a complete program. NPort.cpp: display port and the corresponding file name, which is equivalent Netstat-noa command for XP and higher versions of the definition of the function prototype iphlpapi.dll used in generating IP address string.. The following is the structure associated with the TCP:
typedef struct tagMIB_TCPEXROW {
DWORD dwState // connection status.
DWORD dwLocalAddr // local computer address.
DWORD dwLocalPort // local computer port.
DWORD dwRemoteAddr // remote computer address.
DWORD dwRemotePort // remote computer port.
DWORD dwProcessId
} MIB_TCPEXROW,* PMIB_TCPEXROW
(系统自动生成,下载前可以参看下载内容)
下载文件列表
NPort/NPort.cpp
NPort/NPort.dsp
NPort/NPort.dsw
NPort/NPort.ncb
NPort/NPort.opt
NPort/NPort.plg
NPort
NPort/NPort.dsp
NPort/NPort.dsw
NPort/NPort.ncb
NPort/NPort.opt
NPort/NPort.plg
NPort
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.