Return-Path: Date: Wed, 11 Oct 2006 14:34:21 +0200 (CEST) From: Peter Wippich To: BlueZ development In-Reply-To: Message-ID: References: MIME-Version: 1.0 Subject: Re: [Bluez-devel] How extract client address on server ?? Reply-To: BlueZ development List-Id: BlueZ development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Sender: bluez-devel-bounces@lists.sourceforge.net Errors-To: bluez-devel-bounces@lists.sourceforge.net Hello Andrea, On Wed, 11 Oct 2006, Andrea Carlevato wrote: > Sorry Peter but using openobex libs i ve no socket there, only an > handle...How can i use getpeername() if i ve no socket to pass it ??? > > > andrea > I've not used Oben Obex so far. But when I look at the source code of btobex_listen / btobex_accept / btobex_connect_request use sockets for bluetooth communication. And the file descriptor inside the obex structure is a socket file descriptor. Also you have an obex_transport structure which should already contain the source / destination addresses (not sure if this is realy the bluetooth address for BT transport, just had a short look). Ciao, Peter | Peter Wippich Voice: +49 30 46776411 | | G&W Instruments GmbH fax: +49 30 46776419 | | Gustav-Meyer-Allee 25, Geb. 12 Email: pewi@gw-instruments.de | | D-13355 Berlin / Germany | ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Bluez-devel mailing list Bluez-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bluez-devel