/* This program is free software; you can redistribute it and/or modify it
* under the terms of the license (GNU LGPL) which comes with this package. */
/* This program is free software; you can redistribute it and/or modify it
* under the terms of the license (GNU LGPL) which comes with this package. */
msg_task_t task_message_piece_new(const char *issuer_host_name,
const char *mailbox, int peer_id, int index,
msg_task_t task_message_piece_new(const char *issuer_host_name,
const char *mailbox, int peer_id, int index,
int block_length, int block_size)
{
msg_task_t task =
task_message_index_new(MESSAGE_PIECE, issuer_host_name, mailbox, peer_id,
index, block_length * block_size);
message_t message = MSG_task_get_data(task);
int block_length, int block_size)
{
msg_task_t task =
task_message_index_new(MESSAGE_PIECE, issuer_host_name, mailbox, peer_id,
index, block_length * block_size);
message_t message = MSG_task_get_data(task);