Change license from LGPL to GPL version 2 + linking exception. This fixes C++ templat...
[libt2n] / src / client.hxx
CommitLineData
19facd85
TJ
1/*
2Copyright (C) 2006 by Intra2net AG - Gerd v. Egidy
3
4The software in this package is distributed under the GNU General
5Public License version 2 (with a special exception described below).
6
7A copy of GNU General Public License (GPL) is included in this distribution,
8in the file COPYING.GPL.
9
10As a special exception, if other files instantiate templates or use macros
11or inline functions from this file, or you compile this file and link it
12with other works to produce a work based on this file, this file
13does not by itself cause the resulting work to be covered
14by the GNU General Public License.
15
16However the source code for this file must still be made available
17in accordance with section (3) of the GNU General Public License.
18
19This exception does not invalidate any other reasons why a work based
20on this file might be covered by the GNU General Public License.
21*/
a11e19b7
GE
22#ifndef __LIBT2N_CLIENT
23#define __LIBT2N_CLIENT
24
25#include <string>
a64066eb 26#include <iostream>
a11e19b7
GE
27
28#include "connection.hxx"
29#include "types.hxx"
30
31namespace libt2n
32{
33
94247295
GE
34/** @brief a (generic) connection from client to server. Abstract.
35 */
a11e19b7
GE
36class client_connection : public connection
37{
a7170401
GE
38 private:
39 log_level_values log_level;
40 std::ostream *logstream;
41
a11e19b7 42 public:
a7170401
GE
43 client_connection();
44
45 void set_logging(std::ostream *_logstream, log_level_values _log_level);
46
47 std::ostream* get_logstream(log_level_values level);
a11e19b7
GE
48};
49
50}
51
52#endif