Linux bluetooth development
 help / color / mirror / Atom feed
From: Ed Tsang <netdesign_98@yahoo.com>
To: Luiz Augusto von Dentz <luiz.dentz@gmail.com>
Cc: Bluettooth Linux <linux-bluetooth@vger.kernel.org>
Subject: Re: How to past connect complete event status (page timeout) to apps
Date: Wed, 28 Jul 2010 07:04:29 -0700 (PDT)	[thread overview]
Message-ID: <125720.17686.qm@web52606.mail.re2.yahoo.com> (raw)
In-Reply-To: <AANLkTinA-E6v157y0DOf2gBzKykvT22vEn=9TddSvgy7@mail.gmail.com>

Luiz, Got it working now EHOSTDOWN, ETIMEOUT... I could not fix the git, as my 
private branch out of 0.14. 

    What I did is inject  at some of the call back (service_callback, 
rfcomm_callback..).  

     if (cond & (G_IO_NVAL | G_IO_ERR)) {
        int err = 0, sock = g_io_channel_unix_get_fd(io);
        socklen_t len = sizeof(err);

        if (getsockopt(sock, SOL_SOCKET, SO_ERROR, &err, &len) < 0)
            err = errno;  /* then send it to the agent via a new method*/
        }

--------
  Basically I will see G_IO_ERR when it fail (for those test case that I am 
working on).
   One question that I hope you could help me is to how to tune the timing for 
ETIMEOUT, GW_OBEX_ERROR_TIMEOUT. I tried to search (timeout|TIMEOUT) and did not 
get too far.

Cheers
Ed




      reply	other threads:[~2010-07-28 14:04 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-07-23 17:48 How to past connect complete event status (page timeout) to apps Ed Tsang
2010-07-23 20:15 ` Luiz Augusto von Dentz
2010-07-28 14:04   ` Ed Tsang [this message]

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=125720.17686.qm@web52606.mail.re2.yahoo.com \
    --to=netdesign_98@yahoo.com \
    --cc=linux-bluetooth@vger.kernel.org \
    --cc=luiz.dentz@gmail.com \
    /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