#16 obex over cable (cobex),and how to save whole packet

closed
nobody
None
5
2007-06-02
2004-07-09
biproc2004
No

Hello,

I am trying to write an application to synchronize my
mobile phone with my PC. The protocol used is SyncML
over cobex (cable obex). I have started from openobex-
apps test_server.c and here is how I do it :

When I receive a OBEX_EV_REQ with a PUT command I
call the following function :

void put_request(obex_t *handle, obex_object_t
*object)
{

while (OBEX_ObjectGetNextHeader(…))

{
switch (hi)
case OBEX_HDR_BODY:
body = hv.bs;
body_len = hlen;
break;
default:
printf(“Skipped header”);
}
save_file(“put_object”, body, body_len);
}//end of put request

But If I do that I only get the part in yellow above while
I would like to get green+yellow(see html file attached).

PS: There is a mistake I think since in the green part I
don't want C3 00 00 00 A8

Any help would be appredciated

Please help.

Discussion

  • biproc2004
    biproc2004
    2004-07-09

    What I want to capture

     
    Attachments
    • status: open --> closed