Re: Suggestion for API extension

SukkoPera <[email protected]> Mon, 3 Oct 2005 02:14:33 +0200
Newsgroups gmane.comp.multimedia.libnjb.user
Organization Grabbing Hands LTD
Message-ID <[email protected]>
Alle 22:17, sabato 01 ottobre 2005, Linus Walleij ha scritto:
> > NJB_Send_Track_fd()
> > NJB_Send_File_fd()
>
> Will take some more time. Can you make patches for it...?
I've spent the whole evening modifying send_file so that it will accept a file 
descriptor and so that it also works without specifying the filesize... then 
I discovered that NJB_Send_File and NJB_Send_Track *MUST* know the filesize 
before calling send_file. This is bad for my project, because the FTP 
protocol does not specify the length of the files, but just closes the data 
connection to signal that the end of file has been reached. So my effort was 
useless :(. Isn't there a way to specify the filesize only *after* the file 
has been sent? Sounds impossible :(. I guess I'll have to live with temporary 
files, at least for the uploads...
-- 
Giorgio
------------ Slackware GNU/Linux 10.2 user -------------
ICQ: 10238408
MSN: [email protected]
Web: http://www.nogood.it/sukkopera/
signature.asc (application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.7 (GNU/Linux)

iD8DBQBDQHfs9IYBqaQO6EURApMWAKCuSlVFKrlO4nAaKg+Z4UMtuJWb+wCcCorw
dPegKWOV0jEVtTBV/kZOEU0=
=iH+F
-----END PGP SIGNATURE-----