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; |
| 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 Slee | 77575e6 | 2007-09-24 19:24:53 +0000 | [diff] [blame] | 19 | |
| 20 | |
| 21 | @interface TBinaryProtocolFactory : NSObject <TProtocolFactory> { |
| 22 | } |
| 23 | |
| 24 | + (TBinaryProtocolFactory *) sharedFactory; |
| 25 | |
| 26 | - (TBinaryProtocol *) newProtocolOnTransport: (id <TTransport>) transport; |
| 27 | |
| 28 | @end |