Hello,
I already wrote an Obex client/server program using OpenOBEX that works
fine with latest stable version (1.3).
I downloaded latest cvs version, and my program is no more able to send
data.
In client mode, after connection request it receives an OBEX_EV_REQDONE
with mode set to OBEX_MODE_SERVER while I am waiting for
OBEX_MODE_CLIENT (as previously and in obex_event() function of
apps/obex_test.c).
I wrote a little patch that fixes this (my program is able to send data
with it).
Is it OK ?
Regards
Fred
--
-----------------------------------------------
It is not by improving the oil lamp that one invents the electric bulb!
-----------------------------------------------
Danis Frederic Access Company
Software engineer
Mail : mailto:[EMAIL PROTECTED]
-----------------------------------------------
==== lib.orig/obex_client.c - lib/obex_client.c ====
@@ -185,15 +185,17 @@
} else {
/* Notify app that client-operation is done! */
DEBUG(3, "Done! Rsp=%02x!\n", rsp);
- self->state = MODE_SRV | STATE_IDLE;
if (self->object->abort) {
+ self->state = MODE_SRV | STATE_IDLE;
if (rsp == OBEX_RSP_SUCCESS)
obex_deliver_event(self, OBEX_EV_ABORT, self->object->opcode, rsp, TRUE);
else
obex_deliver_event(self, OBEX_EV_LINKERR, self->object->opcode, rsp, TRUE);
}
- else
+ else {
obex_deliver_event(self, OBEX_EV_REQDONE, self->object->opcode, rsp, TRUE);
+ self->state = MODE_SRV | STATE_IDLE;
+ }
}
break;
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Openobex-users mailing list
[email protected]
http://lists.sourceforge.net/lists/listinfo/openobex-users