From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Lee Chin" Subject: Re: getting the local port on a socket Date: Wed, 10 Sep 2003 19:57:54 -0500 Sender: linux-newbie-owner@vger.kernel.org Message-ID: <20030911005754.4122.qmail@mail.com> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline List-Id: Content-Type: text/plain; charset="us-ascii" To: Lee Chin , Mark Hahn , linux-newbie@vger.kernel.org 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" Date: Wed, 10 Sep 2003 17:03:23 -0500 To: "Mark Hahn" ,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