cpp: World duly helloed



A simple helloworld client/server example in the ORBit2 cpp branch now
works without segfaults, as you can see by the attached log (I tried to
paste it directly, but evolution doesn't seem to like long lines).

The example is a slightly modified version of the one from the
orbitcpp-examples package, but I found it necessary to link the stubs as
well as the skels in with the server. I believe that this might be
normal practice.

-- 
Murray Cumming
murrayc@usa.net
www.murrayc.com
[root@localhost helloworld]# ./server&
[5] 24984
[root@localhost helloworld]# IOR:010000002400000049444c3a5068696c44617765732f68656c6c6f6d6f64756c652f48656c6c6f3a312e3000030000000054424f580000000101020005000000554e495800000000160000006c6f63616c686f73742e6c6f63616c646f6d61696e000000230000002f746d702f6f726269742d726f6f742f6c696e632d35316231313136303936326561000000000000caaedfba4c00000001010200230000002f746d702f6f726269742d726f6f742f6c696e632d353162313131363039363265610000000000001800000000000000a23e04700029e8a8010000000cf917cbeb62e323010000003c0000000100000002000000050000001800000000000000a23e04700029e8a8010000000cf917cbeb62e3230100000001000105000000000901010000000000

[root@localhost helloworld]# 
[root@localhost helloworld]# ./client IOR:010000002400000049444c3a5068696c44617765732f68656c6c6f6d6f64756c652f48656c6c6f3a312e3000030000000054424f580000000101020005000000554e495800000000160000006c6f63616c686f73742e6c6f63616c646f6d61696e000000230000002f746d702f6f726269742d726f6f742f6c696e632d35316231313136303936326561000000000000caaedfba4c00000001010200230000002f746d702f6f726269742d726f6f742f6c696e632d353162313131363039363265610000000000001800000000000000a23e04700029e8a8010000000cf917cbeb62e323010000003c0000000100000002000000050000001800000000000000a23e04700029e8a8010000000cf917cbeb62e3230100000001000105000000000901010000000000
Server: Greeting was "Hello server, from client!"
Client: Reply was "Hello client, from server!"
GLib-GObject-Message: stale GObjects: 1
GLib-GObject-Message: [0x8051360] stale GIOPConnection	ref_count=2
[root@localhost helloworld]#


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]