Re: [Bluez-devel] Obex handle?

Manuel Naranjo
2007-07-19T13:11:29Z

Fernando,
This question should be asked in the openobex mailing list but who cares.
I had patched the obexftp app to be able to use more than one dongle,
here's the code that handle that:
if (!src) {
bacpy(&src_addr, BDADDR_ANY);
else if (!strncmp(src, "hci", 3)) {
hci_devba(atoi(src + 3), &src_addr);
}
else {
str2ba(src, &src_addr);
}
if (!device) {
ret = -EINVAL;
break;
}

(void) str2ba(devicedup, &bdaddr);
free(devicedup);
ret = BtOBEX_TransportConnect(cli->obexhandle, &src_addr, &bdaddr,
(uint8_t)port);

> Thanks for your response, Vikas.
>
> first...? There is any problem with the mailing list in sourceforge??
> I can't do any search...
>
> Afortunately, you give me a link within I can search.
> Thanks once.
>
> But this issue talks about how to know if a dongle is free to use it or not...
>
> This can help me, now what I know, but my question is where I select which
> dongle will be used with OBEX...
>
> So... ,at one moment, I know the dongle I must to use is the "dev_id 0", ok;
> but..., how I say to OBEX "use the dongle "dev_id 0"".
> In whic method I can select this option??
>
> In HCI is the addr.hci_dev, and in OBEX...? handle.dev_id????
>
> I'm not sure I'm explaning well, but I hope you understand me a little.
>
> Thans a lot,
> Fernando Un