// // CCNetwork.h // CCFC // // Created by xichen on 11-12-23. // Copyright 2011 ccteam. All rights reserved. // #import <Foundation/Foundation.h> #include <ifaddrs.h> #include <sys/socket.h> #include <net/if.h> #define MACRO_LOCAL_LOOP_IP @"127.0.0.1" @interface CCNetwork : NSObject { } // get the total info of network flow, if returns FALSE, the returns upFlow and downFlow value can't be used. + (BOOL)getTotalNetworkFlow:(size_t *)upFlow withDownFlow:(size_t *)downFlow; @end
可能有更新:
googlecode链接地址:http://code.google.com/p/iphone-common-codes-ccteam/source/browse/trunk/CCFC/files/CCNetwork.h
github地址: https://github.com/cxsjabc/iphone-common-codes-ccteam/tree/master/CCFC/files/CCNetwork.h
本文介绍了CCNetwork接口,用于获取网络流量总信息,包括上行和下行流量。提供了两个参数来接收返回的流量值,确保了网络使用情况的实时监控。
79

被折叠的 条评论
为什么被折叠?



