Am Dienstag 31 Oktober 2006 09:17 schrieb Rupesh Gujare:
>    I am newbie to the openobex programming. and currently studying project
> "ussp-push-0.9". [http://www.xmailserver.org/ussp-push.html]. My objective
> is to write code where i can detect all nearby bluetooth devices.

That has nothing to do with obex.

> Detect that on which channel OBEX is running

This one is also not about obex but rather SDP.

> and push my file on that OBEX channel.

Only that is related to openobex.

> With reference to above project i need help regarding undestanding 
> of logic flow and description of following API's. and structure.

The API documentation contains proper examples and description in chapter 2.
Go to the doc directory of the source and type "make html" to get it.

> 1)obex_t *OBEX_Init(int transport, obex_event_t eventcb, unsigned int
> flags) while initialising OBEX, what is meant by first argument
> "transport"? i see some flags defined as follows  for same:--
>
>                   %OBEX_TRANS_IRDA : Use regular IrDA socket (need an IrDA
> stack) %OBEX_TRANS_INET : Use regular TCP/IP socket
>                   %OBEX_TRANS_CUSTOM : Use user provided transport
>                   %OBEX_TRANS_BLUETOOTH: Use regular Bluetooth RFCOMM
> socket (need the BlueZ stack) %OBEX_TRANS_USB: Use USB transport (libusb
> needed) What does this mean? i am doing for Bluetooth. if i use
> OBEX_TRANS_BLUETOOTH, what it will mean? In above code they have not used
> Bluez stack. I wanna use it. how can i do it?

ussp-push-0.9 uses the bluez stack on linux.

> 2)What is OBEX_RegisterCTransport() is all about? What does this API do?
>
>    What is obex_ctrans_t structure? What r these function pointers? when
> these functions r called? and who calls them?
>
>    typedef struct {
>           int (*connect)(obex_t *handle, void * customdata);
>           int (*disconnect)(obex_t *handle, void * customdata);
>           int (*listen)(obex_t *handle, void * customdata);
>           int (*write)(obex_t *handle, void * customdata, uint8_t *buf, int
> bu int   (*handleinput)(obex_t *handle, void * customdata, int timeout);
> void * customdata;
>       } obex_ctrans_t;
> 3)What is OBEX_SetCustomData() and OBEX_GetCustomData() API's?
>     what kind of data we r supposed to set and get and where they r used?

2 and 3 are about obex over serial cables.

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