// $Revision: 1.4 $ // Copyright (C) 1994-1995 Taligent, Inc. All rights reserved. #ifndef Taligent_LOCALSERVICE #include #endif #ifndef Taligent_MESSAGESTREAMS #include #endif #ifndef IOSTREAMH #include // Included for cout #endif void main() { TLocalServiceReference serviceRef(TLocalObjectName("AdditionServer")); TRequestSenderStream request(serviceRef); long num1 = 8; long num2 = 9; num1 >>= request; num2 >>= request; request.Send(); long reply = 0; reply <<= request; request.DoneWithReply(); cout << endl << "Adding " << num1 << " to " << num2 << " gives us: " << reply << endl; }