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
14 лет назад
Richard Nyberg
06bd2a1a21
On solaris bcopy and some other useful functions are declared in strings.h.
16 лет назад
Richard Nyberg
b306439636
Update for the read_whole_file -> read_file change.
18 лет назад
Richard Nyberg
45bf9f2658
Allow empty files in torrents. Create them in stat_and_adjust and let the
stream abstraction skip past them.
18 лет назад
Richard Nyberg
a781e02cd8
Add missing includes.
18 лет назад
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.
18 лет назад
Richard Nyberg
c865aa9254
Use c99 types conservatively to compile on OpenBSD. Also convert to or from
time_t via long.
19 лет назад
Richard Nyberg
273294989e
Use benc_dget_mema instead of benc_dget_mem + malloc + bcopy.
19 лет назад
Richard Nyberg
36a68e4b76
Check for failure to allocate memory.
19 лет назад
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.
19 лет назад
Richard Nyberg
1eea7650a2
Remove use of the ugly PRI* print macros.
19 лет назад
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
19 лет назад
Richard Nyberg
dd0d462afa
Import btpd-0.1.
git-svn-id: file:///home/rnyberg/svngit/btpd/releases/0.1@1 76a1f634-46fa-0310-9943-bd1476092a85
19 лет назад