proto.cpp 268 B

123456789101112
  1. #include "proto.h"
  2. using namespace NCalculator;
  3. using namespace NBus;
  4. TCalculatorProtocol::TCalculatorProtocol()
  5. : TBusBufferProtocol("Calculator", 34567)
  6. {
  7. RegisterType(new TRequestSum);
  8. RegisterType(new TRequestMul);
  9. RegisterType(new TResponse);
  10. }