Hi,

You deliver stream events where cmd is set to OBEX_CMD_CONNECT. It should be 
the current cmd though.

Why is this a problem? I find it easier to first parse the cmd and then handle 
the event (less code jumping).
However, in lib/obex_object.c, object->opcode is not defined for the stream 
events.
Can this be fixed somehow?

Currently, I use a work-around:
        static int last_obex_cmd = 0;
        if (event == OBEX_EV_STREAMAVAIL)
                obex_cmd = last_obex_cmd;
        else
                last_obex_cmd = obex_cmd;

But I would rather avoid that...

HS

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Openobex-users mailing list
[email protected]
http://lists.sourceforge.net/lists/listinfo/openobex-users

Reply via email to