LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 06-11-2004, 07:20 AM   #1
crazyduck
LQ Newbie
 
Registered: Jun 2004
Location: poland
Distribution: slack
Posts: 5

Rep: Reputation: 0
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
 
Old 06-11-2004, 09:09 AM   #2
jim mcnamara
Member
 
Registered: May 2002
Posts: 964

Rep: Reputation: 36
Consider using named pipes for ipc - interprocess communication:

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


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
unix domain socket: how to know if i use recvmsg or read Thinking Programming 3 09-23-2005 01:51 AM
unix domain KsA Programming 5 04-30-2004 03:37 PM
IPC (Message Queues vs. FIFOs vs. Unix-domain Sockets) TedMaul Programming 0 03-18-2004 04:53 AM
Why did you experienced users of Unix change to unix over Windows? Laptop2250 Linux - General 11 10-28-2003 11:51 AM
How to schedule unix script periodically from unix os level??? gopi_20us Programming 2 03-11-2002 06:45 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 09:58 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration