makes all tracker requests 'stopped' when aborting
[libtorrent.git] / include / libtorrent / pch.hpp
blobde937c596979f27eac402a037c572bec493b8514
1 /*
3 Copyright (c) 2008, Arvid Norberg
4 All rights reserved.
6 Redistribution and use in source and binary forms, with or without
7 modification, are permitted provided that the following conditions
8 are met:
10 * Redistributions of source code must retain the above copyright
11 notice, this list of conditions and the following disclaimer.
12 * Redistributions in binary form must reproduce the above copyright
13 notice, this list of conditions and the following disclaimer in
14 the documentation and/or other materials provided with the distribution.
15 * Neither the name of the author nor the names of its
16 contributors may be used to endorse or promote products derived
17 from this software without specific prior written permission.
19 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
20 AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
21 IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
22 ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
23 LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
24 CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
25 SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
26 INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
27 CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
28 ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
29 POSSIBILITY OF SUCH DAMAGE.
33 #ifdef BOOST_BUILD_PCH_ENABLED
35 #include <algorithm>
36 #include <asio/ip/host_name.hpp>
37 #include <assert.h>
38 #include <bitset>
39 #include <boost/array.hpp>
40 #include <boost/bind.hpp>
41 #include <boost/config.hpp>
42 #include <boost/cstdint.hpp>
43 #include <boost/date_time/gregorian/gregorian_types.hpp>
44 #include <boost/date_time/posix_time/posix_time.hpp>
45 #include <boost/date_time/posix_time/posix_time_types.hpp>
46 #include <boost/date_time/posix_time/ptime.hpp>
47 #include <boost/detail/atomic_count.hpp>
48 #include <boost/enable_shared_from_this.hpp>
49 #include <boost/filesystem/convenience.hpp>
50 #include <boost/filesystem/exception.hpp>
51 #include <boost/filesystem/fstream.hpp>
52 #include <boost/filesystem/operations.hpp>
53 #include <boost/filesystem/path.hpp>
54 #include <boost/function.hpp>
55 #include <boost/integer_traits.hpp>
56 #include <boost/intrusive_ptr.hpp>
57 #include <boost/iterator/iterator_categories.hpp>
58 #include <boost/iterator/iterator_facade.hpp>
59 #include <boost/iterator/transform_iterator.hpp>
60 #include <boost/iterator_adaptors.hpp>
61 #include <boost/lexical_cast.hpp>
62 #include <boost/limits.hpp>
63 #include <boost/multi_index/member.hpp>
64 #include <boost/multi_index/ordered_index.hpp>
65 #include <boost/multi_index_container.hpp>
66 #include <boost/next_prior.hpp>
67 #include <boost/noncopyable.hpp>
68 #include <boost/optional.hpp>
69 #include <boost/preprocessor/repetition/enum.hpp>
70 #include <boost/preprocessor/repetition/enum_params.hpp>
71 #include <boost/preprocessor/repetition/enum_params_with_a_default.hpp>
72 #include <boost/preprocessor/repetition/enum_shifted_params.hpp>
73 #include <boost/ref.hpp>
74 #include <boost/scoped_ptr.hpp>
75 #include <boost/shared_ptr.hpp>
76 #include <boost/smart_ptr.hpp>
77 #include <boost/static_assert.hpp>
78 #include <boost/thread.hpp>
79 #include <boost/thread/mutex.hpp>
80 #include <boost/thread/recursive_mutex.hpp>
81 #include <boost/tuple/tuple.hpp>
82 #include <boost/utility.hpp>
83 #include <boost/version.hpp>
84 #include <boost/weak_ptr.hpp>
85 #include <cassert>
86 #include <cctype>
87 #include <cmath>
88 #include <cstdlib>
89 #include <ctime>
90 #include <cwchar>
91 #include <deque>
92 #include <fstream>
93 #include <functional>
94 #include <iomanip>
95 #include <iostream>
96 #include <iterator>
97 #include <limits>
98 #include <list>
99 #include <map>
100 #include <memory>
101 #include <numeric>
102 #include <queue>
103 #include <set>
104 #include <sstream>
105 #include <stdexcept>
106 #include <string>
107 #include <typeinfo>
108 #include <utility>
109 #include <vector>
110 #include <zlib.h>
112 #ifdef __OBJC__
113 #define Protocol Protocol_
114 #endif
116 #include <asio/ip/tcp.hpp>
117 #include <asio/ip/udp.hpp>
118 #include <asio/io_service.hpp>
119 #include <asio/deadline_timer.hpp>
120 #include <asio/write.hpp>
122 #ifdef __OBJC__
123 #undef Protocol
124 #endif
126 #endif