discuss-gnustep
[Top][All Lists]
Advanced

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

Re: How to use DO in a Foundation-based daemon


From: Quentin Mathé
Subject: Re: How to use DO in a Foundation-based daemon
Date: Thu, 19 Oct 2006 01:59:03 +0200

Hi Richard,

Le 12 oct. 06 à 18:37, Richard Frith-Macdonald a écrit :

On 12 Oct 2006, at 17:23, Quentin Mathé wrote:

I'm looking for help on how to set up NSConnection properly in a gnustep daemon (Foundation only). I tried various strategies without success. I usually start gdomap from rc.local (running then with nobody identity), I have also tried to run it with root identity and the flags -fd.

First ... what is the connection for? should it work between different users on different machines, or is it for a single user on a single machine.

If the former, you need to use socket ports and need gdomap running
If the latter, you need to use message ports (the default) and do not need gdomap.

In my case, it's the latter.

When I call -registerName: on the connection, the method returns YES as if everything went smoothly but on gdomap side I can clearly observe that nothing happened.

That's normal ... because gdomap is not needed/used unless you set up a connection using socket ports.

ok.

But I still think there is a host related issue, because my code seems correct if you take in account my daemon is for a single user on a single machine. In my test, it fails in the method -[NSMessagePortNameServer portForName:onHost:]. With NSMessagePort debug level turned on, I get the following ouput :

portForName: /etoilesystem host: pcubuntu
non-local host

The last log statement means the returned port is nil.

On the daemon side, the port seems to be properly registered according to NSMessagePort debug level output.

Quentin.

--
Quentin Mathé
qmathe@club-internet.fr





reply via email to

[Prev in Thread] Current Thread [Next in Thread]