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