This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Share sockets between processes
- From: LLeweLLyn Reese <llewelly at lifesupport dot shutdown dot com>
- To: amish_munshi at sify dot com
- Cc: gcc-help at gcc dot gnu dot org
- Date: 18 Jul 2003 06:07:22 -0700
- Subject: Re: Share sockets between processes
- References: <20030717210102.GC3477@munshi.dyndns.org>
- Reply-to: gcc-help at gcc dot gnu dot org
amish_munshi@sify.com writes:
> Greetings,
>
> I would like to share a socket which are created by the parent
> process with all the children.nnppnnnnnnnnnnnnn
> My parent is a server which calls fork() on accepting connections
> using accept(). I would like to send data from one client to the other
> client, I know the socket number that the two clients are on.
> Assume that child1 and child2 are created in a sequence.
> I am able to send data on sockets create for child1 from the child2. But
> child1 cannot use socket created for child2 and can successfully send data.
> The entire code with a client stub is avaiable at
> http://www.geocities.com/amishmunshi/sourcecode.zip
[snip]
I'm sorry, I don't understand what this has to do with gcc.
This sounds like a unix programming question.
Please try askiing it in a more appropriate forum, such as
comp.unix.programmer .