public inbox for linux-newbie@vger.kernel.org
 help / color / mirror / Atom feed
From: "Lee Chin" <leechin@mail.com>
To: Lee Chin <leechin@mail.com>, Mark Hahn <hahn@physics.mcmaster.ca>,
	linux-newbie@vger.kernel.org
Cc: Lee Chin <leechin@mail.com>
Subject: Re: getting the local port on a socket
Date: Wed, 10 Sep 2003 19:57:54 -0500	[thread overview]
Message-ID: <20030911005754.4122.qmail@mail.com> (raw)

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

             reply	other threads:[~2003-09-11  0:57 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-09-11  0:57 Lee Chin [this message]
  -- strict thread matches above, loose matches on Subject: below --
2003-09-10 22:03 getting the local port on a socket Lee Chin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20030911005754.4122.qmail@mail.com \
    --to=leechin@mail.com \
    --cc=hahn@physics.mcmaster.ca \
    --cc=linux-newbie@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox