ifish/Ifish/AlibcTradeSDK-3.1.1.96/Frameworks/AlibcTradeCommon.framework/Headers/AlibcNetServiceBase.h

37 lines
990 B
Objective-C
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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