【问题标题】:Monitoring Network traffic in Windows Mobile 6.5 using C#?使用 C# 监视 Windows Mobile 6.5 中的网络流量?
【发布时间】:2013-08-13 07:27:30
【问题描述】:

我需要使用 c# 监控 Windows Mobile 6.5 设备中使用的每个应用程序的网络流量。

我真的不知道从哪里开始以及如何开始。

在谷歌搜索后,我发现 Netlog 对这种情况很有帮助。

有什么想法吗?

请给我建议。

谢谢,

巴鲁

【问题讨论】:

    标签: c# windows-mobile-6.5 windows-mobile-5.0


    【解决方案1】:

    是的,netlog 是 Windows CE Platformbuilder 中提供的一个示例。

    当你查看源代码时,你会发现 netlog 是一个“驱动”DLL,netlogctl 用于控制 DLL。

    我担心架构不会使用 C# 重新构建。您不能使用 C# 编写本机驱动程序 DLL。

    但是,您也可以使用 iphlpapi,请参阅我的 netstat 示例:http://www.hjgode.de/wp/2013/09/24/mobile-development-netstat-know-your-devices-open-ports/

    你会得到一个整体的统计数据:

    ======= TCP statistics ========
    Retransmission timeout (min/max): Van Jacobson's Algorithm: 300/120000
                max connnections: -1
                     active open: 69
                    passive open: 196
                 failed attempts: 0
              established resets: 243
             current established: 20
                     segments in: 134380
                    segments out: 130900
          retransmitted segments: 175
                       in errors: 0
                      out resets: 861
                 num connections: 26
    ======= UDP statistics ========
                    in datagrams: 13771
                       in errors: 0
                       num ports: 3353
                   num addresses: 7
                   out datagrams: 887
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2012-06-27
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多