#include <iostream>#include <sstream>

Go to the source code of this file.
Defines | |
| #define | LOGGING | 
| #define | LOGSTREAM(level, pipe) | 
| #define | OBJLOGSTREAM(obj, level, pipe) | 
| #define | EXCEPTIONSTREAM(loglevel, exception, pipe) | 
| #define EXCEPTIONSTREAM | ( | loglevel, | |||
| exception, | |||||
| pipe | ) | 
do { \ std::ostringstream ostr; \ ostr << pipe; \ std::ostream* streamptr; \ if ((streamptr=get_logstream(loglevel))!=NULL) \ (*streamptr) << ostr.str() << std::endl; \ throw exception(ostr.str()); \ } while (0)
Referenced by libt2n::socket_client_connection::connect_with_timeout(), libt2n::socket_server::fill_buffer(), libt2n::socket_handler::fill_buffer(), libt2n::command_server::handle(), libt2n::socket_server::new_connection(), libt2n::socket_handler::set_socket_options(), libt2n::socket_server::socket_server(), libt2n::socket_handler::socket_write(), libt2n::socket_server::start_listening(), and libt2n::socket_handler::wait_ready_to_write().
| #define LOGGING | 
| #define LOGSTREAM | ( | level, | |||
| pipe | ) | 
do { \ std::ostream* streamptr; \ if ((streamptr=get_logstream(level))!=NULL) \ (*streamptr) << pipe << std::endl; \ } while (0)
Referenced by libt2n::server::add_connection(), libt2n::server_connection::check_timeout(), libt2n::server::cleanup(), libt2n::socket_handler::close(), libt2n::socket_client_connection::connect_with_timeout(), libt2n::socket_handler::fill_buffer(), libt2n::server::get_packet(), libt2n::socket_server::new_connection(), libt2n::socket_client_connection::reconnect(), libt2n::socket_client_connection::socket_client_connection(), libt2n::socket_handler::socket_write(), libt2n::socket_client_connection::tcp_connect(), and libt2n::socket_client_connection::unix_connect().
| #define OBJLOGSTREAM | ( | obj, | |||
| level, | |||||
| pipe | ) | 
do { \ std::ostream* streamptr; \ if ((streamptr=obj.get_logstream(level))!=NULL) \ (*streamptr) << pipe << std::endl; \ } while (0)
Referenced by libt2n::command_server::handle_packet().
 1.6.1 
© Intra2net AG 2025
 | Legal | Contact