Marq Schneider
b1d891c7b1
Don't set a maximum file size. read_file will use the file size.
There was a hard-coded 2MB file size limit on the .torrent files.
Set the limit to 0 so read_file() will use the actual file size.
Closes GH-14
il y a 14 ans
Richard Nyberg
06bd2a1a21
On solaris bcopy and some other useful functions are declared in strings.h.
il y a 16 ans
Richard Nyberg
b306439636
Update for the read_whole_file -> read_file change.
il y a 18 ans
Richard Nyberg
45bf9f2658
Allow empty files in torrents. Create them in stat_and_adjust and let the
stream abstraction skip past them.
il y a 18 ans
Richard Nyberg
a781e02cd8
Add missing includes.
il y a 18 ans
Richard Nyberg
cd0eb82f20
The metainfo code provided a load -> test -> struct metainfo interface.
The metainfo struct has been replaced by functions for qeurying specific
items from the torrent. In addition, the tests of the torrent data has
been improved.
il y a 18 ans
Richard Nyberg
c865aa9254
Use c99 types conservatively to compile on OpenBSD. Also convert to or from
time_t via long.
il y a 19 ans
Richard Nyberg
273294989e
Use benc_dget_mema instead of benc_dget_mem + malloc + bcopy.
il y a 19 ans
Richard Nyberg
36a68e4b76
Check for failure to allocate memory.
il y a 19 ans
Richard Nyberg
01c92051d5
o Changed the benc_ api to make it easier to use.
o Lot of work on the cli and its communication with btpd.
il y a 19 ans
Richard Nyberg
1eea7650a2
Remove use of the ugly PRI* print macros.
il y a 19 ans
Richard Nyberg
c285b374f8
The mega whitespace patch.
Tabs have been converted to spaces and trailing whitespace have been removed.
I have fixed my emacs settings now :P
il y a 19 ans
Richard Nyberg
dd0d462afa
Import btpd-0.1.
git-svn-id: file:///home/rnyberg/svngit/btpd/releases/0.1@1 76a1f634-46fa-0310-9943-bd1476092a85
il y a 19 ans