protected void sendList(Range r) throws IOException
{
for (int i = (int)r.start; i <= (int)r.end; i++) {
File f = Repository.getInstance().getFile(i);
if (f != null) {
DirectShareFileMessage msg = new DirectShareFileMessage(i, f);
write(msg.data + "\n");
}
}
write("\n");
}