Axel Hecht wrote:
Axel Hecht wrote:
Hi,
I'm trying to create a test app which communicates with a child process via ipc.
I end up in a mess, because I want to give the clientID of the parent proc to the child via commandline (so that I could run more than one pair at once).
But the call to GetClientID fails, obviously the connection to the ipcd hasn't been established yet. Is there a way to get a handler called once the connection is established?
Axel
Hrm. looking a bit closer, ipcService.mTransport has the mClientID == 1, but ipcService does not. That's not good, huh?
Axel
Axel,
Currently, the only solution is to register a service with the category manager.
category = "ipc-startup-category" topic = "ipc-startup"
Then, from that notification you should be able call GetClientID and have it not fail.
BTW, what platform are you using? Linux, Windows, ... ?
Darin
Just to follow up on this thread... there was a bug preventing this notification from occuring. The same bug prevents the client ID from being set in the ipcService. This bug has been fixed on the trunk.
Darin _______________________________________________ Mozilla-xpcom mailing list [EMAIL PROTECTED] http://mail.mozilla.org/listinfo/mozilla-xpcom
