>
>    1. Re: retrieving the remote bdaddr in obexpushd (Hendrik Sattler)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Am Freitag 17 August 2007 17:52 schrieb Stephen Keegan:
> > I'm attempting to retrieve the bdaddr of a device which is sending a
> > file with OBEX to the obexpushd daemon. I use OBEX_GetFD() and
> > getpeername(). Here is the function i'm using:
> >
> [...]
> >
> > and here is how I call the function from the code:
> >
> >         if (intf & (1 << INTF_BLUETOOTH)) {
> >              fd = OBEX_GetFD(BT_HANDLE);
> >             printf("about to get_bdaddr...\n");
> >             get=get_bdaddr(fd,str);
> >             printf("\n\tADDRESS2: %s\n", str);
> >         }
> >
> >
> >
> > The channel and family values appear to be correct (channel is 9) but
> > the problem is that the address value is: 00:00:00:00:00
>
> You cannot get the remote address from a listening socket as there is no
> remote client, yet.
>
> > Does anybody know how I can get the actual bdaddr of the sending device?
>
> Before doing such things, taking a look at SVN is usually worth it. Here, use
> function net_get_peer() to get a string that describes the connection. From a
> script pipe, the From field contains the same string and it is also printed
> to stderr.
> What do you want to do anyway?
>
> HS
>
>
>

Thankyou Hendrik - the SVN version is much more powerful and I have
managed to retrieve the sending bdaddr. What I want to do is to
receive content, then send back a short file to the sending Bluetooth
device. I have another question regarding the usage of multiple
dongles with obexpushd. Can I use more than one dongle to receive OBEX
content? I have looked through the code but cannot see anywhere that I
can set the device id (e.g. hci0 or hci1). Stephen.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Openobex-users mailing list
[email protected]
http://lists.sourceforge.net/lists/listinfo/openobex-users

Reply via email to