酷店

AlibcNetServiceBase.h 990B

12345678910111213141516171819202122232425262728293031323334353637
  1. /*
  2. * AlibcNetServiceBase.h
  3. *
  4. * 阿里百川电商
  5. * 项目名称:阿里巴巴电商 AlibcTradeCommon
  6. * 版本号:3.1.1.93
  7. * 发布时间:2017-03-06
  8. * 开发团队:阿里巴巴百川商业化团队
  9. * 阿里巴巴电商SDK答疑群号:1229144682(阿里旺旺)
  10. * Copyright (c) 2016-2019 阿里巴巴-移动事业群-百川. All rights reserved.
  11. */
  12. #import <Foundation/Foundation.h>
  13. #import "AlibcNetPacket.h"
  14. #ifndef AlibcNetServiceBase_h
  15. #define AlibcNetServiceBase_h
  16. #define AMP_NET_ERROR_TIME_OUT 118
  17. @interface AlibcNetServiceBase : NSObject
  18. @property(nonatomic, assign) NSTimeInterval timeoutSeconds;
  19. - (BOOL)processPacket:(AlibcNetPacket *)packet;
  20. - (void)netPacketSuccess:(AlibcNetPacket *)packet data:(id)data;
  21. - (void)netPacketFail:(AlibcNetPacket *)packet error:(AlibcNetError *)error;
  22. //子类重载该函数,执行真实发送 ,其他的不要乱重载
  23. - (BOOL)performSend:(AlibcNetPacket *)packet;
  24. - (BOOL)shouldRetry:(NSError *)error;
  25. @end
  26. #endif