Date: Fri, 05 May 2006 01:40:23 +0100 From: sheeda <list@talha.com> To: freebsd-net@freebsd.org Subject: using ng_socket Message-ID: <445A9EF7.4020703@talha.com>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?445A9EF7.4020703>