Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759621AbZCPNZv (ORCPT ); Mon, 16 Mar 2009 09:25:51 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754356AbZCPNZm (ORCPT ); Mon, 16 Mar 2009 09:25:42 -0400 Received: from outbound.icp-qv1-irony-out1.iinet.net.au ([203.59.1.106]:44710 "EHLO outbound.icp-qv1-irony-out1.iinet.net.au" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752570AbZCPNZl (ORCPT ); Mon, 16 Mar 2009 09:25:41 -0400 X-Greylist: delayed 609 seconds by postgrey-1.27 at vger.kernel.org; Mon, 16 Mar 2009 09:25:41 EDT X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AtoBAHjtvUl8qcOV/2dsb2JhbAAIj2XEfoN/Bg X-IronPort-AV: E=Sophos;i="4.38,373,1233500400"; d="scan'208";a="466459972" Message-ID: <49BE5C33.7020101@ii.net> Date: Mon, 16 Mar 2009 22:03:31 +0800 From: Cliffe User-Agent: Thunderbird 2.0.0.19 (Windows/20081209) MIME-Version: 1.0 To: linux-kernel@vger.kernel.org Subject: Getting the port numbers and IP address from struct socket References: <469B31E8.6050906@murdoch.edu.au> In-Reply-To: <469B31E8.6050906@murdoch.edu.au> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 422 Lines: 16 Hi, This may be a simple question, but how do I determine the port numbers, and IP addresses from a (struct socket)socket? I appreciate any advice. Thank you, Cliffe. -- -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" 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.tux.org/lkml/