blob: 2c56740ad0c0df0bcdadbf710c0e036e28b9a704 [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;
10}
11
12- (id) initWithTransport: (id <TTransport>) transport;
13
14- (id) initWithTransport: (id <TTransport>) transport
15 strictRead: (BOOL) strictRead
16 strictWrite: (BOOL) strictWrite;
17
18@end;
Mark Slee77575e62007-09-24 19:24:53 +000019
20
21@interface TBinaryProtocolFactory : NSObject <TProtocolFactory> {
22}
23
24+ (TBinaryProtocolFactory *) sharedFactory;
25
26- (TBinaryProtocol *) newProtocolOnTransport: (id <TTransport>) transport;
27
28@end