[Csci551-talk] Project A : UDP Port Assignments
Nirav Jasapara
myopenideas at yahoo.com
Sat Feb 21 11:04:11 PST 2004
--- Devarshi Shah <devarshi at ieee.org> wrote:
> Hi,
>
> Was reading up on the Project definition.. had a
> small question..
> The description in Part A asks us to include the UDP
> Ports of the
> neighbour routers in the configuration downloaded
> from the Manager to a
> Router via TCP. Does this mean that the UDP Ports
> are preassigned ?
i think your child process can open up a UDP port [ at
random .. htons(0) ] and can send this info to the
parent ( Manager ) or you could preselect the udp
ports and send these to the routers, to bind to, but
this kind of hardcoding should be avioded.
>
> If not, this implies that now there needs to be a 2
> way communication
> between the Manager and the Router - in the first
> one the Router sends
> over its UDP port number,gets the config and then
> disconnects from the
> Manager.. Subsequently, it reconnects from to the
> Manager (after all the
or you could just keep the socket open with the
Manager process till the program runs [ which does
provide you with two way communication ]... why
disconnect and reconnect frequently
> Routers have checked in with their UDP Ports) to get
> the UDP Ports of
> its neighbours.. Would this be correct ? Please
> correct me if I am going
> wrong somewhere in my reasoning !!!
>
>
> --- Devarshi
>
'stay free
- Nirav Jasapara.
" God is real .... unless defined int "
__________________________________
Do you Yahoo!?
Yahoo! Mail SpamGuard - Read only the mail you want.
http://antispam.yahoo.com/tools
More information about the Csci551-talk
mailing list