Am Dienstag 25 März 2008 schrieb Nick Bransby-Williams: > When pushing files to mobile via OPP, I need to find out if a user > refused the connection (via the on screen prompt 'Accept Message > from...') or the connection just timed out. > > Thing is, BtOBEX_TransportConnect blocks while the phone displays the > prompt and then returns with either -1 or 1 (success or failure) > leaving me with no way to access the actual response from the phone. > > I thought it would a case of reading the response from the obex > connect command request but this all happens before i send the connect > request (unless BtOBEX_TransportConnect is sending one for me?) > > Any ideas?
Use the last variable in your obex_event_t callback function when the event is OBEX_EV_ABORT? OTOH, at that time of connection establishment, the connection should _never_ timeout! Don't force the user to be quick, react to disconnection instead. HS ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Openobex-users mailing list [email protected] http://lists.sourceforge.net/lists/listinfo/openobex-users
