* [Bluez-users] Usage of fcntl for non blocking mode...
@ 2007-04-02 11:00 Tushar Paturde
2007-04-02 11:03 ` Marcel Holtmann
0 siblings, 1 reply; 4+ messages in thread
From: Tushar Paturde @ 2007-04-02 11:00 UTC (permalink / raw)
To: Bluez-users
[-- Attachment #1.1: Type: text/plain, Size: 612 bytes --]
Hi,
I'm getting some problem while using Bluez hci function calls. The pseudo
code is as under:
...
devId = hci_devid(addr);
sock = hci_open_dev(devId);
...
fcntl(sock, F_SETFL, O_NONBLOCK); /** whats the problem ??? */
...
hci_read_local_name(sock, size, name, 0)
....
If I comment call to fcntl() , I get correct name of device by using
hci_read_local_name() function.
But if the call is made to fcntl(), subsequent calls of hci_* function
does not work properly. In fact hci_read_local_name() returns null name.
Any idea what is the problem with usage of fcntl() this way ?
Regards,
Tushar Paturde
[-- Attachment #1.2: Type: text/html, Size: 792 bytes --]
[-- Attachment #2: Type: text/plain, Size: 345 bytes --]
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
[-- Attachment #3: Type: text/plain, Size: 164 bytes --]
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Bluez-users] Usage of fcntl for non blocking mode...
2007-04-02 11:00 [Bluez-users] Usage of fcntl for non blocking mode Tushar Paturde
@ 2007-04-02 11:03 ` Marcel Holtmann
2007-04-02 11:51 ` Tushar Paturde
0 siblings, 1 reply; 4+ messages in thread
From: Marcel Holtmann @ 2007-04-02 11:03 UTC (permalink / raw)
To: BlueZ users
Hi Tushar,
> I'm getting some problem while using Bluez hci function calls. The
> pseudo code is as under:
>
> ...
> devId = hci_devid(addr);
> sock = hci_open_dev(devId);
> ...
> fcntl(sock, F_SETFL, O_NONBLOCK); /** whats the problem ??? */
> ...
> hci_read_local_name(sock, size, name, 0)
> ....
>
>
> If I comment call to fcntl() , I get correct name of device by using
> hci_read_local_name() function.
> But if the call is made to fcntl(), subsequent calls of hci_*
> function does not work properly. In fact hci_read_local_name()
> returns null name.
> Any idea what is the problem with usage of fcntl() this way ?
I never tried to have a non-blocking HCI socket. And I have no idea why
you actually need it. It is better to use the D-Bus API anyway.
Regards
Marcel
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2007-04-02 12:04 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-04-02 11:00 [Bluez-users] Usage of fcntl for non blocking mode Tushar Paturde
2007-04-02 11:03 ` Marcel Holtmann
2007-04-02 11:51 ` Tushar Paturde
2007-04-02 12:04 ` Marcel Holtmann
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.