一个概念性的问题,有关网络编程的。

tiankongzhiying 2008-08-20 03:19:50
今天看题的时候,看到这样一个结构,不知道这个结构的参数是什么意思,所以也就看不懂这个程序是什么意思,所以我也就不会用这个结构。有那位大侠帮忙解决一下。
typedef struct _MIB_TCPSTATS
{
DWORD dwRtoAlgorithm;
DWORD dwRtoMin;
DWORD dwRtoMax;
DWORD dwMaxConn;
DWORD dwActiveOpens;
DWORD dwPassiveOpens;
DWORD dwAttemptFails;
DWORD dwEstabResets;
DWORD dwCurrEstab;
DWORD dwInSegs;
DWORD dwOutSegs;
DWORD dwRetransSegs;
DWORD dwInErrs;
DWORD dwOutRsts;
DWORD dwNumConns;
} MIB_TCPSTATS, *PMIB_TCPSTATS;
...全文
107 8 打赏 收藏 转发到动态 举报
写回复
用AI写文章
8 条回复
切换为时间正序
请发表友善的回复…
发表回复
FgYg 2008-08-21
  • 打赏
  • 举报
回复
MIB_TCPSTATS 包含本机上正运行的TCP协议的统计表
Type MIB_TCPSTATS

dwRtoAlgorithm As Long ‘指定重传输(RTO:retransmission time-out)算法

dwRtoMin As Long ‘重传输超时的最小值,毫秒

dwRtoMax As Long ‘重传输超时的最大值,毫秒

dwMaxConn As Long ‘连接最大数目,如果为-1,则连接的最大数目是可变的

dwActiveOpens As Long ‘主动连接数目,即客户端正向服务器进行连接数目

dwPassiveOpens As Long ‘被动连接数目,即服务器监听连接客户端请求数目

dwAttemptFails As Long ‘尝试连接失败的次数

dwEstabResets As Long ‘对已建立的连接实行重设的次数

dwCurrEstab As Long ‘目前已建立的连接

dwInSegs As Long ‘收到分段数据报的数目

dwOutSegs As Long ‘传输的分段数据报数目,不包括转发的数据包

dwRetransSegs As Long ‘转发的分段数据报数目

dwInErrs As Long ‘收到错误的数目

dwOutRsts As Long ‘重设标志设定后传输分段数据报数目

dwNumConns As Long ‘累计连接的总数

kingpang 2008-08-20
  • 打赏
  • 举报
回复
找个免费的在线翻译全翻了
sun007700 2008-08-20
  • 打赏
  • 举报
回复
用金山词霸屏幕取词,慢慢看,看多了就可以了 。
sun007700 2008-08-20
  • 打赏
  • 举报
回复
dwRtoAlgorithm
Specifies the retransmission time-out (RTO) algorithm in use. This member can be one of the following values. Value Meaning
MIB_TCP_RTO_CONSTANT Constant Time-out
MIB_TCP_RTO_RSRE MIL-STD-1778 Appendix B
MIB_TCP_RTO_VANJ Van Jacobson's Algorithm
MIB_TCP_RTO_OTHER Other

dwRtoMin
Specifies the minimum retransmission time-out value in milliseconds.
dwRtoMax
Specifies the maximum retransmission time-out value in milliseconds.
dwMaxConn
Specifies the maximum number of connections. If this member is -1, the maximum number of connections is variable.
dwActiveOpens
Specifies the number of active opens. In an active open, the client is initiating a connection with the server.
dwPassiveOpens
Specifies the number of passive opens. In a passive open, the server is listening for a connection request from a client.
dwAttemptFails
Specifies the number of failed connection attempts.
dwEstabResets
Specifies the number of established connections that have been reset.
dwCurrEstab
Specifies the number of currently established connections.
dwInSegs
Specifies the number of segments received.
dwOutSegs
Specifies the number of segments transmitted. This number does not include retransmitted segments.
dwRetransSegs
Specifies the number of segments retransmitted.
dwInErrs
Specifies the number of errors received.
dwOutRsts
Specifies the number of segments transmitted with the reset flag set.
dwNumConns
Specifies the cumulative number of connections.
tiankongzhiying 2008-08-20
  • 打赏
  • 举报
回复
本人英语不是很好,MSDN上的看不太懂
  • 打赏
  • 举报
回复
[Quote=引用 1 楼 superdiablo 的回复:]
look up msdn for MIB_TCPSTATS
details are available there.
[/Quote]
呵呵!~结构体就是个定义而已,从程序里应该可以猜出来什么意思吧?
根据具体的赋值……猜猜看!~
  • 打赏
  • 举报
回复
MSDN上有!
superdiablo 2008-08-20
  • 打赏
  • 举报
回复
look up msdn for MIB_TCPSTATS
details are available there.

18,356

社区成员

发帖
与我相关
我的任务
社区描述
VC/MFC 网络编程
c++c语言开发语言 技术论坛(原bbs)
社区管理员
  • 网络编程
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧