Thread (3 messages) 3 messages, 2 authors, 2010-07-28

Re: How to past connect complete event status (page timeout) to apps

From: Ed Tsang <hidden>
Date: 2010-07-28 14:04:29

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


Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help