Objective C: Interprocess Communication

From: Kurt (kurt.semba_at_gmx.de)
Date: 03/31/04


Date: 31 Mar 2004 06:15:54 -0800

Hi all,

6 hours of online research and no luck...now I count on you experts :)

My system:
Linux Kernel 2.4.22, gcc 3.3.2, all written in objective c

Here's what already works:
- A daemon (main prog is creating an object --> daemon: TCP socket
server) is running and waiting for client connections

- On client connect (test client on the same system) the server will
fork() a child process

  --> The Child will create a new object that will have an endless
loop doing database lookups (that's why I want to put this object in a
different process since otherwise my daemon is blocked by the
while-loop of the database-lookup-object)

  --> The Parent will go on listening for incoming TCP connections

What's the problem:
The daemon should be able to communicate with this new object running
in a new process (at least to stop it). I tried to look up things
about protocols in objective c but couldn't find an example where two
objects in two different processes could communicate with each other.
Tried looking up pipes and signals, but this is not what I'm looking
for.

Is there a way how to communicate using object messages????

Thanx-a-lot,
Kurt



Relevant Pages

  • Re: question about ip addresses
    ... You are using a program to communicate to someone ... a client program, and one is the server program. ... This is neither unreasonable, nor a security issue. ... provider, your country, and likely one can deduce some more accurate ...
    (alt.computer.security)
  • Two clients with same IP Address behind a captive portal?
    ... I'm trying to build up a box that acts like a transparent proxy ... I would like that clients with both DHCP IP address and STATIC IP ... When a STATIC IP CLIENT connects: ... The ARP daemon sees two different MAC ADDRESS under the same ...
    (comp.os.linux.networking)
  • Re: jboss normal client/server communication
    ... > some client side libraries for marshalling and setting up the ... > Setting up a servlet on the server and communicate directly with this ... The servlet could even emit ... > going to run in the same local area network as the server, ...
    (comp.lang.java.programmer)
  • Re: which IPC should i use?
    ... The LED's are on the RTS an DTS lines, so when the controlling program ... just sends the daemon messages ... to switch on or off a specified LED. ... When the client wants a LED to be turned on, it puts a message on ...
    (comp.unix.programmer)
  • Re: Sockets programming
    ... > I've been following a socket programming tutorial to make a simple TCP ... > However the structure of it is to have a server listening for requests from ... > client but only that one. ... > paragraph above to communicate with multiple clients at the same time on the ...
    (microsoft.public.vc.language)