Am Sunday 16 October 2005 19:20 schrieb Andy Ross:
> Oliver Schroeder wrote:
> > So the server has to reread the port from the UDP header
> > everytime it reseives new data from the client and recreate a
> > socket for it (and clse the existing one of course).
>
> Er, no.  Check the man page of "sendto". :)
> The server only needs one socket for its whole lifetime.

Of course, but this solves only part of the problem. The main problem is, that 
a NAT router may decide to not accept (ie. forward to the client) any packets 
we send back to it.
It may work with more than 80% of current existant NAT routers, but it still 
does not work for the other 20% or so. However, I think I should implement it 
anyway and the remaining 20% should be able to provide a receive port (just 
like it is today) and manipulate their NAT config accordingly.

regards,
Oliver

_______________________________________________
Flightgear-devel mailing list
[email protected]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel
2f585eeea02e2c79d7b1d8c4963bae2d

Reply via email to