From owner-freebsd-net@FreeBSD.ORG Sun Mar 2 08:41:09 2008 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DB3B31065676 for ; Sun, 2 Mar 2008 08:41:09 +0000 (UTC) (envelope-from bounces@nabble.com) Received: from kuber.nabble.com (kuber.nabble.com [216.139.236.158]) by mx1.freebsd.org (Postfix) with ESMTP id BBFF38FC1C for ; Sun, 2 Mar 2008 08:41:09 +0000 (UTC) (envelope-from bounces@nabble.com) Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1JVjTL-0000hm-JT for freebsd-net@freebsd.org; Sun, 02 Mar 2008 00:23:03 -0800 Message-ID: <15784710.post@talk.nabble.com> Date: Sun, 2 Mar 2008 00:23:03 -0800 (PST) From: zDen To: freebsd-net@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: angwyshield-freebsd@yahoo.com Subject: Looking for a guide to extend|adapting the socket framework for NFCIP-1 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: Sun, 02 Mar 2008 08:41:10 -0000 Hi, I'm exploring the way to extend or adapt the socket programming framework for NFC devices using C programming. (for future-porting compatible) Using the bluetooth framework as basic reference, I've some questions and need helps regarding the adaption. 1) As the NFC device is attached to the USB or UART port, how and where in the source code can I change the output of the byte-stream packet to the proper physical port? i.e where is the part of the source code that is physical device dependent when doing the I/O calls? 2) As the protocol family (PF_xx) and address family (AF_xx) of NFC is not define in the socket library, how can I define them and let the default socket() call return a socket with the customized structure? I can see that I may need to use SOCK_RAW as the basic socket framework or any others recommendation? Any comments and recommendations for the above issue is gladly appreciated. Thanks for help. -- View this message in context: http://www.nabble.com/Looking-for-a-guide-to-extend%7Cadapting-the-socket-framework-for-NFCIP-1-tp15784710p15784710.html Sent from the freebsd-net mailing list archive at Nabble.com.