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