imp_sockets.cpp

Go to the documentation of this file.
00001 #ifndef IMP_SOCKETS_IMPLEMENTATION_FILE
00002 #define IMP_SOCKETS_IMPLEMENTATION_FILE
00003 
00004 /*****************************************************************************\
00005 *                                                                             *
00006 *  Name   : sockets implementation only support                               *
00007 *  Author : Chris Koeritz                                                     *
00008 *                                                                             *
00009 *******************************************************************************
00010 * Copyright (c) 1994-$now By Author.  This program is free software; you can  *
00011 * redistribute it and/or modify it under the terms of the GNU General Public  *
00012 * License as published by the Free Software Foundation; either version 2 of   *
00013 * the License or (at your option) any later version.  This is online at:      *
00014 *     http://www.fsf.org/copyleft/gpl.html                                    *
00015 * Please send any updates to: fred@gruntose.com                               *
00016 \*****************************************************************************/
00017 
00018 #include "imp_sockets.h"
00019 
00020 #include <basis/portable.h>
00021 #include <opsystem/path_configuration.h>
00022 
00023 #undef BASE_LOG
00024 #define BASE_LOG(to_print) EMERGENCY_LOG(program_wide_logger(), to_print)
00025 
00027 
00028 const char *TOKEN_SEPARATOR() { return ","; }
00029 const char *TOKEN_ASSIGN() { return "="; }
00030 
00031 void sockets_complain_garbage(const istring &function_name)
00032 {
00033   const istring complaint("response could not be interpreted.");
00034   BASE_LOG(timestamp(true, true) + function_name + complaint);
00035 }
00036 
00037 void sockets_complain_dead(const istring &function_name, const istring &which)
00038 {
00039   const istring complaint(" is dead; ignoring request.");
00040   BASE_LOG(timestamp(true, true) + function_name + which + complaint);
00041 }
00042 
00043 void sockets_complain_reject(const istring &function_name, const istring &what)
00044 {
00045   const istring complaint(" cefloon failed to accept request for ");
00046   BASE_LOG(timestamp(true, true) + function_name + complaint + what);
00047 }
00048 
00049 
00050 #endif //IMP_SOCKETS_IMPLEMENTATION_FILE
00051 

Generated on Sat Aug 30 04:31:34 2008 for HOOPLE Libraries by  doxygen 1.5.1