• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: SCDynamicStoreAddTemporaryValue returns permissions denied error
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: SCDynamicStoreAddTemporaryValue returns permissions denied error


  • Subject: Re: SCDynamicStoreAddTemporaryValue returns permissions denied error
  • From: Quinn <email@hidden>
  • Date: Sat, 31 May 2003 10:24:21 +0100

At 18:55 +0200 30/5/03, Tomas Zahradnicky wrote:
We use BSD shared memory (shmget, shmat) calls to share some data (< 1K).

Is using System Configuration framework better?

No.

however the result is always 0 and I get 1003 (permissions denied) error. Do I have to run as root in order to do this or the error might be elsewhere?

You need to be running as root in order to modify any SCF structures.

The choice of API for communicating between clients and a daemon is complex. It depends on a number of factors, including:

o the structure of the daemon (is it "select" or CFRunLoop based).

o the structure of the clients (are they GUI-based applications,
or UNIX tools, or whatever).

o the communication frequency (the order of magnitude of the number
of communications per second between your clients and the daemon).

o the communication throughput (how many bytes of data will be
sent down the channel per second).

o the number of distinct operations (for example, if the clients can
only tell the daemon to do one thing, then a non-RPC based
communication makes sense; OTOH, if there are hundreds of distinct
messages between the client and the daemon, it would behoove you
to use some sort of RPC mechanism, such as MIG)

If you supply some details, I can offer some more specific advice.

PS: Quinn, how's going the SCF documentation project?

I have no new information on this )-:

S+E
--
Quinn "The Eskimo!" <http://www.apple.com/developer/>
Apple Developer Technical Support * Networking, Communications, Hardware
_______________________________________________
macnetworkprog mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/macnetworkprog
Do not post admin requests to the list. They will be ignored.

References: 
 >SCDynamicStoreAddTemporaryValue returns permissions denied error (From: Tomas Zahradnicky <email@hidden>)

  • Prev by Date: Connecting a CFSocket to the Loopback
  • Next by Date: Re: Detecting network disconnected
  • Previous by thread: SCDynamicStoreAddTemporaryValue returns permissions denied error
  • Next by thread: Seeking advice: Implementing SSL in a Carbon/CFM app
  • Index(es):
    • Date
    • Thread