[omniORB] Callback sample code
Hugues Marty
hugues@isoftfr.isoft.fr
Fri, 03 Sep 1999 11:02:43 +0200
Il s'agit d'un message multivolet au format MIME.
--------------6DA729653D029D1BE0672F7A
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Since it appears there is no sample yet available, here is one. I
finally came out with this small sample (written with MSVC++ 5 and
omniORB 2.7.1 in mind but it should be easy to port to any platform).
Thanks again for all who replied to my previous request.
This is a Zip file uuencoded containing cbtask.idl, client.cpp,
server.cpp.
Enjoy,
Hugues.
--
--------------6DA729653D029D1BE0672F7A
Content-Type: application/x-zip-compressed;
name="cbsample.zip"
Content-Transfer-Encoding: x-uuencode
Content-Disposition: inline;
filename="cbsample.zip"
begin 644 cbsample.zip
M4$L#!!0 ( /A-(R>(XU>>T '$! * 8V)T87-K+FED;%6/06X#
M,0A%]R/-'5BVJSE ECU"<@'&)BD*Q98AJ:*H=R]VFHFZA ^/Q[+ !XJLF,Y@
M^%6%YFF>EN@V0B= !59SU$10CN"?;) $S:!H5!0%D_I80<U0>\0.7D9JU*[4
M.I+5J1TQ,-N]^SP!Q-ZA0[]9!-;@14H9&E5RRG*#BSK+@#G:&6(T%Z6^>BT<
M!ULY-3)[8P4I>H)*+871^VZ>?G9_S^R'Q@#\=WD$APY^VNP=F[_N78P#BL-K
M6,=GF:T*WAX#3X'-R#J@ZVR/IO5E\PM02P,$% @ -U4C)^^)?B&-!0
ME X H !C;&EE;G0N8W!PI59M:QLY$/Y<@__#L =EW3IV4@X.UFT@==(2
MR$N)TWX)89&ULJW+6O))LE-?R9^X7WPSDG:]CNM"[KXX66GFF6=>-?T^#$LI
ME&NWVJU^'T8+P>5$<IAH Y>C;\.W;_M7M_![N_6;G!1B OGE:)A_.[O! X@G
MIV<?OWZF;U@8-ITSX'H^1\BTE.,N)'JNY.E:L;GD[_XXRHTK>GB1='ZM<7WS
M\072;F8$*][]7'PNK&53D28G2Z?GS*%WI50/\(AJL+$%:2'&RVDG*(O2BA?X
M]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