/*************************************************************************** * Copyright (C) 2006 by Gerd v. Egidy * * gve@intra2net.com * * * * This library is free software; you can redistribute it and/or modify * * it under the terms of the GNU Lesser General Public License version * * 2.1 as published by the Free Software Foundation. * * * * This library is distributed in the hope that it will be useful, * * but WITHOUT ANY WARRANTY; without even the implied warranty of * * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * * GNU Lesser General Public License for more details. * * * * You should have received a copy of the GNU Lesser General Public * * License along with this program; if not, write to the * * Free Software Foundation, Inc., * * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * ***************************************************************************/ #ifndef __LIBT2N_TYPES #define __LIBT2N_TYPES namespace libt2n { /// possible levels for logging enum log_level_values { none=0, error=1, debug=2, fulldebug=3 }; /// possible types of a socket (tcp and unix) enum socket_type_value { tcp_s, unix_s }; /// possible events for callback, __events_end must be the last event and must not be used /// for anything else than marking the end enum callback_event_type { new_connection=0, connection_closed, connection_deleted, __events_end }; } #endif