Added new send buffer class to avoid unecessary copying of outgoing data.

This commit is contained in:
Arvid Norberg
2005-09-14 19:33:16 +00:00
parent 8c8a375168
commit 7f890239c4
9 changed files with 634 additions and 131 deletions

View File

@@ -87,8 +87,8 @@ int main(int argc, char* argv[])
try
{
torrent_info t;
path full_path = initial_path() / path(argv[3]);
ofstream out(initial_path() / path(argv[1]), std::ios_base::binary);
path full_path = complete(path(argv[3]));
ofstream out(complete(path(argv[1])), std::ios_base::binary);
int piece_size = 256 * 1024;
char const* creator_str = "libtorrent";