RE: C++ app implementing client and server
- From: Tyler Kohn <TKohn axeda com>
- To: 'Michael Meeks' <michael ximian com>
- Cc: "'orbit-list gnome org'" <orbit-list gnome org>
- Subject: RE: C++ app implementing client and server
- Date: Mon, 3 Nov 2003 14:02:49 -0500
>> I hope I'm doing something dumb. I'm using ORBit2-2.8.1.90-1 on redhat
8.
>
> Right; I'd recommend using 2.8.2 since there are a number of
deadlocks
>/ misc. problems fixed in that.
Did this....
>> My application first creates a thread and starts a server from that
thread
>> (I've pretty much just copied the echo example).
>
> Ok. Who is processing incoming traffic ? unless you set a processing
>policy using ORBit_ObjectAdaptor_set_thread_hint (poa,
>...HINT_PER_REQUEST) or somesuch - you won't get a slave I/O thread - so
>you have to run the glib mainloop somewhere yourself to handle input.
>
> See include/orbit/poa/orbit-adaptor.h for the API.
>
...and this, and things are now working as I'd expect. I hadn't run across
the thread hint method, but it made all the difference. Thanks!
-Tyler
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]