Has anybody tried to reject a connection using OBEX_RSP_FORBIDDEN?
I want to do it but I got SIGSEGV.
Win2K(irftp as a client) <==> Linux(openobex 1.0 as a server)
I set OBEX_RSP_FORBIDDEN in the event case of OBEX_EV_PROGRESS:
OBEX_ObjectSetRsp(object, OBEX_RSP_FORBIDDEN, OBEX_RSP_FORBIDDEN);
// store the packet received
Then I got segmentation fault, from log file:
1). after setting OBEX_RSP_FORBIDDEN, stack still received some packets because Win2K uses multi-window.
2). Then got a request with 8 bytes, OBEX_EV_REQHINT & OBEX_ABORT, and then object is deleted.
3). Again got a request with 3 bytes, stack wanted to use "object->opcode" in obex_server(), but object was deleted, so SIGSEGV.
Is it the bug of Win2K?
I want to know how you implement rejecting a connection?
Any reply would be appreciated!
THX & Regards,
°Ù·Ö°ÙÅ®ÓÑ - ´º¼¾Ñ¡ÃÀ»î¶¯! http://love.163.com
Get latest updates about Open Source Projects, Conferences and News.