By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,605 Members | 1,391 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,605 IT Pros & Developers. It's quick & easy.

Set sender's port

P: n/a
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?

Thanks,

Andre

Nov 15 '06 #1
Share this Question
Share on Google+
3 Replies


P: n/a
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?
Here we discuss standard C and standard C doesn't
have any functions dealing with sockets. I suggest
asking your question in a group which deals with the
operating system you're using.

Nov 15 '06 #2

P: n/a
si******@yahoo.com writes:
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?
The standard C language has no support for sockets. You'll have
better luck asking in a newsgroup that's specific to your system,
perhaps comp.unix.programmer or comp.os.ms-windows.programmer.win32.

--
Keith Thompson (The_Other_Keith) ks***@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <* <http://users.sdsc.edu/~kst>
We must do something. This is something. Therefore, we must do this.
Nov 15 '06 #3

P: n/a
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
Nov 15 '06 #4

This discussion thread is closed

Replies have been disabled for this discussion.