~ubuntu-branches/ubuntu/wily/aria2/wily-proposed

« back to all changes in this revision

Viewing changes to src/bittorrent_helper.h

  • Committer: Package Import Robot
  • Author(s): Kartik Mistry
  • Date: 2013-05-06 15:03:54 UTC
  • mfrom: (2.5.18 sid)
  • Revision ID: package-import@ubuntu.com-20130506150354-jt3mjk1q1ukmn0go
Tags: 1.17.0-1
* New upstream release.
* debian/control:
  + Set priority to optional from extra (Closes: #697659).

Show diffs side-by-side

added added

removed removed

Lines of Context:
160
160
std::string
161
161
getInfoHashString(const SharedHandle<DownloadContext>& downloadContext);
162
162
 
 
163
// Returns 8bytes unsigned integer located at offset pos.  The integer
 
164
// in msg is network byte order. This function converts it into host
 
165
// byte order and returns it.
 
166
uint64_t getLLIntParam(const unsigned char* msg, size_t pos);
 
167
 
163
168
// Returns 4bytes unsigned integer located at offset pos.  The integer
164
169
// in msg is network byte order. This function converts it into host
165
170
// byte order and returns it.
172
177
 
173
178
// Put param at location pointed by dest. param is converted into
174
179
// network byte order.
 
180
void setLLIntParam(unsigned char* dest, uint64_t param);
 
181
 
 
182
// Put param at location pointed by dest. param is converted into
 
183
// network byte order.
175
184
void setIntParam(unsigned char* dest, uint32_t param);
176
185
 
177
186
// Put param at location pointed by dest. param is converted into