Linux bluetooth development
 help / color / mirror / Atom feed
From: "Tushar Paturde" <tusharpaturde@gmail.com>
To: Bluez-users@lists.sourceforge.net
Subject: [Bluez-users] Usage of fcntl for non blocking mode...
Date: Mon, 2 Apr 2007 16:30:17 +0530	[thread overview]
Message-ID: <b621074b0704020400r2e1500d5u4972031e010a05e5@mail.gmail.com> (raw)


[-- 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

             reply	other threads:[~2007-04-02 11:00 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-04-02 11:00 Tushar Paturde [this message]
2007-04-02 11:03 ` [Bluez-users] Usage of fcntl for non blocking mode Marcel Holtmann
2007-04-02 11:51   ` Tushar Paturde
2007-04-02 12:04     ` Marcel Holtmann

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=b621074b0704020400r2e1500d5u4972031e010a05e5@mail.gmail.com \
    --to=tusharpaturde@gmail.com \
    --cc=Bluez-users@lists.sourceforge.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox