Multiple binds on same port
- From: "ognen.duzlevski@xxxxxxxxx" <ognen.duzlevski@xxxxxxxxx>
- Date: Wed, 13 May 2009 11:11:45 -0700 (PDT)
Hello,
I have a UDP server that has clients connecting to it simultaneously -
the server listens to a port x and then forks children to service
requests off of various other ports (child will connect back from port
y to port z on the client machine, same port z the connection came in
from). When the child is done, it dies. The server (parent) binds to
port x and just polls for things to interpret as connections.
A requirement has been added that all the children should connect back
to the client port z from the same port x that the server is selecting
on. Since the server has done the bind() on the port, the child
clearly cannot. Another requirement added was that in addition to the
above, the server needs to be able to serve multiple clients at the
same time. Does this all sound reasonable? I can get involved in
complicated communication between parent and children to decide who
can get to bind the port at what time but it all sounds too
complicated. Am I missing something? Any input is appreciated.
Thanks!
Ognen
.
- Follow-Ups:
- Re: Multiple binds on same port
- From: Barry Margolin
- Re: Multiple binds on same port
- Prev by Date: Re: Linux scheduler for thread scheduling
- Next by Date: Re: Multiple binds on same port
- Previous by thread: How to get file size number > 4G?
- Next by thread: Re: Multiple binds on same port
- Index(es):
Relevant Pages
|