NetInterface.h 572 B

12345678910111213141516171819202122232425262728
  1. //
  2. // NSString+DealInternet.h
  3. // XMFamily
  4. //
  5. // Created by Megatron on 9/12/14.
  6. // Copyright (c) 2014 Megatron. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. #import "Reachability.h"
  10. #define N_RESOLUTION_COUNT 19
  11. @interface NetInterface :NSObject
  12. //获取当前wifi的SSID
  13. +(id)fetchSSIDInfo;
  14. // 获得当前网络连接的ip
  15. +(NSString *)getCurrent_IP_Address;
  16. // 获得当前wifi设备的ssid
  17. +(NSString *)getCurrent_SSID;
  18. +(NSString *)getCurrent_Mac;//获取当前wifi Mac地址
  19. +(BOOL)enableToConnectNetwork;
  20. +(NSString *)getDefaultGateway;
  21. @end