Ask a Question related to UNIX Programming, Design and Development.
-
ajay #1
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
-
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... -
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. ... -
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()... -
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... -
About multiple processes communication
"Olivier Matt" <init64@kodee.org> wrote in message news:slrnbh6637.ie.init64@risingstar.local.kodee.org... processes. Create a pipe,... -
Jens.Toerring@physik.fu-berlin.de #2
Re: Communication between 2 processes by using signals
ajay <ajay_kumarsingh@yahoo.com> wrote:
If you really need to you probably can, you can also implement TCP/IP> 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).
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
-
Valentin Nechayev #3
Re: Communication between 2 processes by using signals
>>> [email]Jens.Toerring@physik.fu-berlin.de[/email] wrote:
Resending any signal back isn't good idea. Better one is to send packets> If you really need to you probably can, you can also implement TCP/IP>> 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).
> 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).
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.
Really, the whole bunch of current IPC methods is designed for efficient> 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).
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



Reply With Quote

