Communication between 2 processes by using signals

Ask a Question related to UNIX Programming, Design and Development.

  1. #1

    Default Communication between 2 processes by using signals

    How 2 independent processes can communicate ( say to passing some
    chunk of data) with "signals". Is it possible ?
    Are signals is counted in IPC (Inter Process Communication).

    Tx and regds
    Ajay Singh
    ajay Guest

  2. Similar Questions and Discussions

    1. Net::Telnet, fork and signals..
      Hello, I've been trying to figure this out for the past couple of days but am hitting a wall. I am using Net::Telnet 3.03 with a modification...
    2. More on 5.8 and signals
      Hi, I am pretty desparate to get this working, and if anyone wants to earn some cash helping me fix things PLEASE call me at 250 655-9513. ...
    3. Signals and recvfrom() behavior
      Hello, I have a program which is waiting for data on a socket in recvfrom(). If a signal (SIGTERM) is sent to the program, should recvfrom()...
    4. Usable signals for own needs
      On 22 Jul 2003, Peteris Krumins wrote: Not portably. BTW, SIGHUP is the usual "reload config" signal. Maybe you need to rethink your...
    5. About multiple processes communication
      "Olivier Matt" <init64@kodee.org> wrote in message news:slrnbh6637.ie.init64@risingstar.local.kodee.org... processes. Create a pipe,...
  3. #2

    Default Re: Communication between 2 processes by using signals

    ajay <ajay_kumarsingh@yahoo.com> wrote:
    > How 2 independent processes can communicate ( say to passing some
    > chunk of data) with "signals". Is it possible ?
    > Are signals is counted in IPC (Inter Process Communication).
    If you really need to you probably can, you can also implement TCP/IP
    via carrier pigeons. You could e.g. code a binary 0 by sending SIGUSR1
    and 1 with SIGUSR2. But that's probably going to be slow and you better
    acknowlege each signal by resending it back to the originator to make
    the data transfer reliable (i.e. to keep the originator from sending
    the next signal before the previous one has been received). Probably
    not a good idea when there are real IPC methods (and, no, signals
    usually aren't counted as IPC, at least they aren't treated in the
    second volume of Unix Network Programming by W. R. Stevens, where
    he deals with IPC).
    Regards, Jens
    --
    _ _____ _____
    | ||_ _||_ _| [email]Jens.Toerring@physik.fu-berlin.de[/email]
    _ | | | | | |
    | |_| | | | | | [url]http://www.physik.fu-berlin.de/~toerring[/url]
    \___/ens|_|homs|_|oerring
    Jens.Toerring@physik.fu-berlin.de Guest

  4. #3

    Default Re: Communication between 2 processes by using signals

    >>> [email]Jens.Toerring@physik.fu-berlin.de[/email] wrote:
    >> How 2 independent processes can communicate ( say to passing some
    >> chunk of data) with "signals". Is it possible ?
    >> Are signals is counted in IPC (Inter Process Communication).
    > If you really need to you probably can, you can also implement TCP/IP
    > via carrier pigeons. You could e.g. code a binary 0 by sending SIGUSR1
    > and 1 with SIGUSR2. But that's probably going to be slow and you better
    > acknowlege each signal by resending it back to the originator to make
    > the data transfer reliable (i.e. to keep the originator from sending
    > the next signal before the previous one has been received).
    Resending any signal back isn't good idea. Better one is to send packets
    of data using such strange level for sending one bit. Packet should be
    organized as in protocols for talking over unreliable serial lines, this
    includes UUCP (g,i,G), ZModem, Hydra, PPP, and some others.
    Of course, channel organized in this way will be too slow and expensive,
    and the only reasonable application for it I see is saying name of local
    socket or named pipe which will be used in following talk.
    > Probably
    > not a good idea when there are real IPC methods (and, no, signals
    > usually aren't counted as IPC, at least they aren't treated in the
    > second volume of Unix Network Programming by W. R. Stevens, where
    > he deals with IPC).
    Really, the whole bunch of current IPC methods is designed for efficient
    interaction when contact addresses (TCP port, local socket...) is already
    known for both sides. But this isn't enough for some cases.


    -netch-
    Valentin Nechayev Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139