Add net-limit module for limiting network bandwidth.
[tairon.git] / src / net-limit / ireader.cpp
blob9aab849d0a2abf4472a127ee789563c9ee4f4028
1 /***************************************************************************
2 * *
3 * Copyright (C) 2006 David Brodsky *
4 * *
5 * This library is free software; you can redistribute it and/or *
6 * modify it under the terms of the GNU Library General Public *
7 * License as published by the Free Software Foundation and appearing *
8 * in the file LICENSE.LGPL included in the packaging of this file. *
9 * *
10 * This library is distributed in the hope that it will be useful, *
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
13 * Library General Public License for more details. *
14 * *
15 ***************************************************************************/
17 #include "ireader.h"
19 namespace Tairon
22 namespace Net
25 /* {{{ IReader::IReader(size_t, Socket *, Limiter *) */
26 IReader::IReader(size_t len, Socket *s, Limiter *l) : Reader(s, l)
28 buffer = new char[len];
29 bufSize = len;
31 /* }}} */
33 /* {{{ IReader::~IReader() */
34 IReader::~IReader()
36 delete [] buffer;
38 /* }}} */
40 }; // namespace Net
42 }; // namespace Tairon
44 // vim: ai sw=4 ts=4 noet fdm=marker