From owner-freebsd-net@FreeBSD.ORG Fri May 5 00:40:17 2006 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AD68416A405 for ; Fri, 5 May 2006 00:40:17 +0000 (UTC) (envelope-from list@talha.com) Received: from dione.webserversystems.com (dione.webserversystems.com [216.118.97.187]) by mx1.FreeBSD.org (Postfix) with ESMTP id 22AB643D46 for ; Fri, 5 May 2006 00:40:17 +0000 (GMT) (envelope-from list@talha.com) Received: from [82.153.238.157] (helo=[127.0.0.1]) by dione.webserversystems.com with esmtpa (Exim 4.52) id 1FboMh-0000Ju-4P for freebsd-net@freebsd.org; Thu, 04 May 2006 20:40:15 -0400 Message-ID: <445A9EF7.4020703@talha.com> Date: Fri, 05 May 2006 01:40:23 +0100 From: sheeda User-Agent: Thunderbird 1.5.0.2 (Windows/20060308) MIME-Version: 1.0 To: freebsd-net@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Antivirus: avast! (VPS 0616-2, 04/18/2006), Outbound message X-Antivirus-Status: Clean X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - dione.webserversystems.com X-AntiAbuse: Original Domain - freebsd.org X-AntiAbuse: Originator/Caller UID/GID - [0 0] / [47 12] X-AntiAbuse: Sender Address Domain - talha.com X-Source: X-Source-Args: X-Source-Dir: Subject: using ng_socket X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 05 May 2006 00:40:17 -0000 Hello, I am trying to use ng_socket in my application to connect into netgraph system. I have successfully initialized the ng_socket using socket(2) system call and I can see the unnamed node in ngctl. I have read the ng_socket manual and it says that I can assign node name using bind(2) and bind NG_DATA sockets to nodes using connect(2). I am lost in sockaddr, sockaddr_in, sockaddr_ng structures and some code example would really help. I need to get to a point where I can send and receive data to/from nodes using sendto & recvfrom commands. Thanks in advance, sheeda