blob: 975af97b46665cec63205084d1a0914500cdf0e8 [file] [log] [blame]
Mark Slee7e9eea42007-09-10 21:00:23 +00001#import "TProtocol.h"
2#import "TTransport.h"
Mark Slee77575e62007-09-24 19:24:53 +00003#import "TProtocolFactory.h"
4
Mark Slee7e9eea42007-09-10 21:00:23 +00005
6@interface TBinaryProtocol : NSObject <TProtocol> {
7 id <TTransport> mTransport;
8 BOOL mStrictRead;
9 BOOL mStrictWrite;
Mark Slee84406052007-11-20 01:39:25 +000010 int32_t mMessageSizeLimit;
Mark Slee7e9eea42007-09-10 21:00:23 +000011}
12
13- (id) initWithTransport: (id <TTransport>) transport;
14
David Reiss0c90f6f2008-02-06 22:18:40 +000015- (id) initWithTransport: (id <TTransport>) transport
Mark Slee7e9eea42007-09-10 21:00:23 +000016 strictRead: (BOOL) strictRead
17 strictWrite: (BOOL) strictWrite;
18
Mark Slee84406052007-11-20 01:39:25 +000019- (int32_t) messageSizeLimit;
20- (void) setMessageSizeLimit: (int32_t) sizeLimit;
21
Mark Slee7e9eea42007-09-10 21:00:23 +000022@end;
Mark Slee77575e62007-09-24 19:24:53 +000023
24
25@interface TBinaryProtocolFactory : NSObject <TProtocolFactory> {
26}
27
28+ (TBinaryProtocolFactory *) sharedFactory;
29
30- (TBinaryProtocol *) newProtocolOnTransport: (id <TTransport>) transport;
31
David Reiss0c90f6f2008-02-06 22:18:40 +000032@end