Mark Slee | 7e9eea4 | 2007-09-10 21:00:23 +0000 | [diff] [blame] | 1 | #import "TProtocol.h" |
| 2 | #import "TTransport.h" |
Mark Slee | 77575e6 | 2007-09-24 19:24:53 +0000 | [diff] [blame] | 3 | #import "TProtocolFactory.h" |
| 4 | |
Mark Slee | 7e9eea4 | 2007-09-10 21:00:23 +0000 | [diff] [blame] | 5 | |
| 6 | @interface TBinaryProtocol : NSObject <TProtocol> { |
| 7 | id <TTransport> mTransport; |
| 8 | BOOL mStrictRead; |
| 9 | BOOL mStrictWrite; |
Mark Slee | 8440605 | 2007-11-20 01:39:25 +0000 | [diff] [blame] | 10 | int32_t mMessageSizeLimit; |
Mark Slee | 7e9eea4 | 2007-09-10 21:00:23 +0000 | [diff] [blame] | 11 | } |
| 12 | |
| 13 | - (id) initWithTransport: (id <TTransport>) transport; |
| 14 | |
David Reiss | 0c90f6f | 2008-02-06 22:18:40 +0000 | [diff] [blame] | 15 | - (id) initWithTransport: (id <TTransport>) transport |
Mark Slee | 7e9eea4 | 2007-09-10 21:00:23 +0000 | [diff] [blame] | 16 | strictRead: (BOOL) strictRead |
| 17 | strictWrite: (BOOL) strictWrite; |
| 18 | |
Mark Slee | 8440605 | 2007-11-20 01:39:25 +0000 | [diff] [blame] | 19 | - (int32_t) messageSizeLimit; |
| 20 | - (void) setMessageSizeLimit: (int32_t) sizeLimit; |
| 21 | |
Mark Slee | 7e9eea4 | 2007-09-10 21:00:23 +0000 | [diff] [blame] | 22 | @end; |
Mark Slee | 77575e6 | 2007-09-24 19:24:53 +0000 | [diff] [blame] | 23 | |
| 24 | |
| 25 | @interface TBinaryProtocolFactory : NSObject <TProtocolFactory> { |
| 26 | } |
| 27 | |
| 28 | + (TBinaryProtocolFactory *) sharedFactory; |
| 29 | |
| 30 | - (TBinaryProtocol *) newProtocolOnTransport: (id <TTransport>) transport; |
| 31 | |
David Reiss | 0c90f6f | 2008-02-06 22:18:40 +0000 | [diff] [blame] | 32 | @end |