Hi, What i need to do is a function to send a file to a determinate mac (already have the channel and remote name from the inquiry_info), and know if the file was successful received or was rejected/failed.
I don't know what is the obexftp.c that u ar talking about :$ There is some doc about ObexFTP API around? i don't want disturb with my noobs question here xD thanks Christian > ------------------------------ > > Message: 2 > Date: Sat, 28 Apr 2007 15:17:10 +0200 > From: "Christian W. Zuckschwerdt" <[EMAIL PROTECTED]> > Subject: Re: [openobex-users] Log Obexftp > To: [email protected] > Message-ID: <[EMAIL PROTECTED]> > Content-Type: text/plain; charset=ISO-8859-1 > > Hi, > > since you are already programming C it might ber better to use the > ObexFTP API. It's really simple if you just want file transfers. See > /usr/include/obexftp/client.h and ./obexftp/apps/obexftp.c > > E.g. something like (you need to copy this from obexftp.c) > > cli = obexftp_open(transport, NULL, info_cb, NULL); > obexftp_connect(cli, device, channel) > // then a couple of > obexftp_list(cli, localname, remotename); > obexftp_get(cli, localname, remotename); > // finally > obexftp_disconnect(cli); > obexftp_close(cli); > > You can read error codes from each function and get status updates via > the info_cb callback. > > Outline your requirements and we can make a complete and minimal example. > > > regards, > Christian > > > [EMAIL PROTECTED] schrieb: >> Im making a C program to send archive with bluetooth. >> >> sprintf(comando_obex,"obexftp -b %s -B %d -U -p %s", MAC_dev, >> canal_obex_object_push, objeto); >> system(comando_obex); >> >> Then the question is about what is the best way to do it. ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Openobex-users mailing list [email protected] http://lists.sourceforge.net/lists/listinfo/openobex-users
