LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   unix domain (https://www.linuxquestions.org/questions/programming-9/unix-domain-192275/)

crazyduck 06-11-2004 07:20 AM

unix domain
 
hello :)
i've a little problem with sockets in unix domain - how to share file desciptor between process? or just how to connect process in this way?
when i've child and parent there is no problem - cos i can use socketpair and then share descriptor by sendmsg, or just share file name... but if i have two diffrend programs?
i have no idea how could it possible cos programs "don't know" about them self too much - but i'm sure that it've to be a solution :)

ps. constant filename IS NOT the solution for my problem - cos i'd like to setup many clients and one server with thread for each client connection - so i need several files..
pps. sorry for my english :P

jim mcnamara 06-11-2004 09:09 AM

Consider using named pipes for ipc - interprocess communication:

http://developers.sun.com/solaris/ar...med_pipes.html


All times are GMT -5. The time now is 05:08 PM.