Mercurial > noffle
comparison src/server.c @ 185:fed1334d766b noffle
[svn] * src/client.c: Change variable only used on constant to 'const'.
* src/filter.c: Add a couple of 'return's after ASSERT() to remove
compiler warnings about functions needing returns.
* NEWS,TODO,configure,configure.in,noffle.conf.example,docs/NOTES,
docs/noffle.conf.5,src/client.c,src/configfile.c,src/content.c,
src/control.c,src/database.c,src/fetch.c,src/fetchlist.c,src/filter.c,
src/group.c,src/lock.c,src/log.c,src/log.h,src/noffle.c,src/outgoing.c,
src/post.c,src/protocol.c,src/request.c,src/server.c,src/util.c:
Debug logging is always compiled and selected via noffle.conf. All debug
logs are classified as all, none, config, control, expire, fetch,
filter, newsbase, noffle, post, protocol, requests and server.
| author | bears |
|---|---|
| date | Sun, 05 Aug 2001 09:24:22 +0100 |
| parents | e196de757ecd |
| children | f1bacee93ca6 |
comparison
equal
deleted
inserted
replaced
| 184:9854ea5f295f | 185:fed1334d766b |
|---|---|
| 1 /* | 1 /* |
| 2 server.c | 2 server.c |
| 3 | 3 |
| 4 $Id: server.c 285 2001-05-10 16:00:12Z bears $ | 4 $Id: server.c 300 2001-08-05 08:24:22Z bears $ |
| 5 */ | 5 */ |
| 6 | 6 |
| 7 #if HAVE_CONFIG_H | 7 #if HAVE_CONFIG_H |
| 8 #include <config.h> | 8 #include <config.h> |
| 9 #endif | 9 #endif |
| 173 va_start( ap, fmt ); | 173 va_start( ap, fmt ); |
| 174 vsnprintf( s, MAXCHAR, fmt, ap ); | 174 vsnprintf( s, MAXCHAR, fmt, ap ); |
| 175 va_end( ap ); | 175 va_end( ap ); |
| 176 snprintf( line, MAXCHAR, "%u %s", stat, s ); | 176 snprintf( line, MAXCHAR, "%u %s", stat, s ); |
| 177 DynStr_appLn( server.reply, line ); | 177 DynStr_appLn( server.reply, line ); |
| 178 Log_dbg( "[S] %s", line ); | 178 Log_dbg( LOG_DBG_PROTOCOL, "[S] %s", line ); |
| 179 } | 179 } |
| 180 | 180 |
| 181 static void | 181 static void |
| 182 putTxtLn( const char *fmt, ... ) | 182 putTxtLn( const char *fmt, ... ) |
| 183 { | 183 { |
| 221 { | 221 { |
| 222 Prt_putTxtBuf( DynStr_str( server.reply ), stdout ); | 222 Prt_putTxtBuf( DynStr_str( server.reply ), stdout ); |
| 223 if ( server.eotAfterReply ) | 223 if ( server.eotAfterReply ) |
| 224 Prt_putEndOfTxt( stdout ); | 224 Prt_putEndOfTxt( stdout ); |
| 225 fflush( stdout ); | 225 fflush( stdout ); |
| 226 Log_dbg( "[S FLUSH]" ); | 226 Log_dbg( LOG_DBG_PROTOCOL, "[S FLUSH]" ); |
| 227 del_DynStr( server.reply ); | 227 del_DynStr( server.reply ); |
| 228 } | 228 } |
| 229 | 229 |
| 230 static Bool | 230 static Bool |
| 231 getTxtLn( Str line, Bool *err ) | 231 getTxtLn( Str line, Bool *err ) |
