From owner-freebsd-questions@FreeBSD.ORG Fri Feb 29 12:51:20 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3C4811065675 for ; Fri, 29 Feb 2008 12:51:20 +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 1874F8FC14 for ; Fri, 29 Feb 2008 12:51:19 +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 1JV4hq-0005sM-UH for freebsd-questions@freebsd.org; Fri, 29 Feb 2008 04:51:18 -0800 Message-ID: <15757882.post@talk.nabble.com> Date: Fri, 29 Feb 2008 04:51:18 -0800 (PST) From: zDen To: freebsd-questions@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-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 29 Feb 2008 12:51:20 -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.-tp15757882p15757882.html Sent from the freebsd-questions mailing list archive at Nabble.com.