Look into DBM files.
I've created a process that is similar to yours (parent process forks
child processes) and they are all daemons.  I used a DBM file to
communicate between them.  The only draw back was you will have to
implement a file locking schema to prevent corrupting your DBM file.

Regards,
Dave DeLine


-----Original Message-----
From: mogikan [mailto:[EMAIL PROTECTED]]
Sent: Thursday, November 01, 2001 2:34 AM
To: perl-unix-users
Cc: mogikan
Subject: [Perl-unix-users] (no subject)



 Dood day!
 I wrote a server which listens on a specific port and 
for each client splits child proccess (using fork()). 
I need to exchange between them (proccesses). I tried 
to use pipe (used socketpair function), but can create 
only one.   
 I have such a general question: How to organize 
interconnection between proccesses though server? How 
does server know which client sends data (proccess 
identification) and how can it send data to a cpecific 
client?
 Thank you.
 
P.S. Used IO::Socket

/Vadim/  
        mailto:[EMAIL PROTECTED]
_______________________________________________
Perl-Unix-Users mailing list. To unsubscribe go to
http://listserv.ActiveState.com/mailman/subscribe/perl-unix-users


_______________________________________________
Perl-Unix-Users mailing list. To unsubscribe go to 
http://listserv.ActiveState.com/mailman/subscribe/perl-unix-users

Reply via email to