* Re: getting the local port on a socket
@ 2003-09-11 0:57 Lee Chin
0 siblings, 0 replies; 2+ messages in thread
From: Lee Chin @ 2003-09-11 0:57 UTC (permalink / raw)
To: Lee Chin, Mark Hahn, linux-newbie; +Cc: Lee Chin
I now change my question to
"why doesent getsockname work unless I call bind? Does this mean, unless I call bind I cannot get the port the system will use to xmit the packet?"
----- Original Message -----
From: "Lee Chin" <leechin@mail.com>
Date: Wed, 10 Sep 2003 17:03:23 -0500
To: "Mark Hahn" <hahn@physics.mcmaster.ca>,linux-newbie@vger.kernel.org
Subject: getting the local port on a socket
> Hi
> How can I get the local port on a socket I just created? I do not want to bind this client socket to any port... I just want to know what port the system (kernel) will use when it sends packets out on this socket
>
> Thanks
> Lee
> --
> __________________________________________________________
> Sign-up for your own personalized E-mail at Mail.com
> http://www.mail.com/?sr=signup
>
> CareerBuilder.com has over 400,000 jobs. Be smarter about your job search
> http://corp.mail.com/careers
>
--
__________________________________________________________
Sign-up for your own personalized E-mail at Mail.com
http://www.mail.com/?sr=signup
CareerBuilder.com has over 400,000 jobs. Be smarter about your job search
http://corp.mail.com/careers
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
^ permalink raw reply [flat|nested] 2+ messages in thread
* getting the local port on a socket
@ 2003-09-10 22:03 Lee Chin
0 siblings, 0 replies; 2+ messages in thread
From: Lee Chin @ 2003-09-10 22:03 UTC (permalink / raw)
To: Mark Hahn, linux-newbie; +Cc: Lee Chin
Hi
How can I get the local port on a socket I just created? I do not want to bind this client socket to any port... I just want to know what port the system (kernel) will use when it sends packets out on this socket
Thanks
Lee
--
__________________________________________________________
Sign-up for your own personalized E-mail at Mail.com
http://www.mail.com/?sr=signup
CareerBuilder.com has over 400,000 jobs. Be smarter about your job search
http://corp.mail.com/careers
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-09-11 0:57 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-09-11 0:57 getting the local port on a socket Lee Chin
-- strict thread matches above, loose matches on Subject: below --
2003-09-10 22:03 Lee Chin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox