Re: Ports

Do you have a question? Post it now! No Registration Necessary

Translate This Thread From English to

Threaded View
Quoted text here. Click to load it

That's the way it usually works.
The client connects from a unknown random port above 1024, to the specific
server
port (i.e. 5001).  the server then sends the data back the same channel from the
known port (5001) to the unknown port (1025).

You can change the client to always use a known port to start with if you want
by
using the bind() call, but usually the first way works fine.

regards

--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Damion de Soto - Software Engineer  email:     snipped-for-privacy@snapgear.com
We've slightly trimmed the long signature. Click to see the full one.
Re: Ports
Hi,

I found this link telling with examples exactly what to do:
http://www.abc.se/~m6695/udp.html

Thanks,

Jens.

Quoted text here. Click to load it
server
from the
want by



Site Timeline