Hello.
I am tring to send a file from Android to Linux server using ibrdtn.
dtnapi has send(dest, fd, len) method to send a file under Android, and dtnrecv can receive content of the file under Linux. However, we do not have a way to send its filename
One way is to add special header to include filename into file. And, dtnrecv extract filename from the received file. However, this way may be too slow because of file copy if the file is big.
I think better way to add a dtn block including filename into a dtn bundle. I do not know if there is that block spec in irtf drafts. We need new api method for it in Android dtnapi and to make dtnrecv support it and rename filename using that block.
Thank you.
- Softgear Ko
Hi.
A better approach would be to embed the filename into the bundle payload. That way it would be possible to put multiple file into one bundle. Several archive tools do that. If programmed the right (streaming) way, this does not introduce any processing overhead compared to your proposal.
Additional extension blocks for transporting filenames are not the right way. Because semantically the filename is part of the payload and does not affect DTN structure in any way.
Kind regards, Johannes Morgenroth
-------- Weitergeleitete Nachricht -------- Von: 고석갑 softgear@etri.re.kr An: ibr-dtn@ibr.cs.tu-bs.de ibr-dtn@ibr.cs.tu-bs.de Betreff: [ibr-dtn] how filetransfer with filename Datum: Sat, 10 Nov 2012 00:10:16 +0000
Hello.
I am tring to send a file from Android to Linux server using ibrdtn.
dtnapi has send(dest, fd, len) method to send a file under Android, and dtnrecv can receive content of the file under Linux. However, we do not have a way to send its filename
One way is to add special header to include filename into file. And, dtnrecv extract filename from the received file. However, this way may be too slow because of file copy if the file is big.
I think better way to add a dtn block including filename into a dtn bundle. I do not know if there is that block spec in irtf drafts. We need new api method for it in Android dtnapi and to make dtnrecv support it and rename filename using that block.
Thank you.
- Softgear Ko -- !! This message is brought to you via the `ibr-dtn' mailing list. !! Please do not reply to this message to unsubscribe. To unsubscribe or adjust !! your settings, send a mail message to ibr-dtn-request@ibr.cs.tu-bs.de !! or look at https://www.ibr.cs.tu-bs.de/mailman/listinfo/ibr-dtn.
participants (2)
-
Johannes Morgenroth
-
고석갑