Re: Network packet loss possible inside the linux kernel?



david wrote:
On Sat, 22 Sep 2007 08:44:55 +0200, Daniel Kay rearranged some electrons
to say:

Hello folks!

I am currently planning to implement an easy way to communicate between
multiple processes on the local machine. Every process may sends events
(in form of a null terminated string) as multicast UDP messages. The
other processes react on these events if required.

Have you considered the interprocess communications features already found in *nix?

http://tldp.org/LDP/lpg/node7.html

I think using pipes and fifos are an easy and simple way to communicate between two processes. But I don't see any easy way using these mechanisms for communication between multiple processes. I can't fork, and I don't want to open a named pipe in every communication direction.

I do not have much experience with System V IPC. And using shared memory is dangerous, which could block the whole communication, if one process with a lock on a semaphore/mutex crashes.

If you disagree with the text above, please tell me of... :-)

I am considering writing an TCP/IP daemon, to which all processes connect. This process will route every incoming message/event to all other processes, if they have registered for the message.


Regards,
Daniel Kay
.



Relevant Pages

  • Re: RegNotifyChangeKeyValue and ipc?
    ... parent process does a search for a certain wordwith certain criteria ... it is effectively slower if you have multiple processes because the process swap ... of the children are blocked "listening" for a registry key to change. ... Don't even bother thinking any further about this as a way of communication. ...
    (microsoft.public.vc.mfc)
  • Re: Network packet loss possible inside the linux kernel?
    ... mechanisms for communication between multiple processes. ... and I don't want to open a named pipe in every communication direction. ... Look at message queues, that might do what you want. ...
    (comp.os.linux.networking)
  • Re: multiprocessing vs thread performance
    ... and just use an mmap for the actual communication. ... Are you reinventing POSH? ... multiple processes. ...
    (comp.lang.python)
  • Re: Problem with EnumDesktopWindows
    ... SendMessage, PostMessage, and other messgae-related APIs are defined NOT to work across ... In fact, inter-desktop communication is, as far as I know, impossible. ... is to use a named pipe. ... I have here a foreign MFC application A which I have to control with my own ...
    (microsoft.public.vc.mfc)
  • Re: Problem with EnumDesktopWindows
    ... In fact, inter-desktop communication is, as far as I know, impossible. ... is to use a named pipe. ... I have here a foreign MFC application A which I have to control with my own ...
    (microsoft.public.vc.mfc)