si******@yahoo.com wrote:
Hi,
I'm reading some tutorials about sockets in the web, and so far didn't
find a way to set the sender's port. Is it possible to do? If so,
which command should I use?
This is not a C question. Yes, we understand that you are writing a C
program, but your question doesn't concern the C language.
Depending on the networking package you are using (winsock or BSD
sockets, or other) you'll need to find an appropriate newsgroup. Try
searching Google Groups for the functions you're using.
Just as an aside, and OT, normally the way it works is that one entitiy
"listens" on a port, those interested in contacting it connect to that
port. I doubt you really need to do what you are asking, but here isn't
the place to discuss it.
Brian