comparison client.c @ 25:ab6cf19be6d3 noffle

[svn] INN needs a MODE READER before it will permit POST
author enz
date Sat, 29 Apr 2000 14:37:59 +0100
parents 6e822f4b19f9
children 45ddd5e72164
comparison
equal deleted inserted replaced
24:cb6cab9fbdf9 25:ab6cf19be6d3
1 /* 1 /*
2 client.c 2 client.c
3 3
4 $Id: client.c 11 2000-02-10 19:27:17Z enz $ 4 $Id: client.c 31 2000-04-29 13:37:59Z enz $
5 */ 5 */
6 6
7 #include "client.h" 7 #include "client.h"
8 8
9 #include <arpa/inet.h> 9 #include <arpa/inet.h>
292 { 292 {
293 close( sock ); 293 close( sock );
294 break; 294 break;
295 } 295 }
296 stat = getStat(); 296 stat = getStat();
297 if ( stat == STAT_READY_POST_ALLOW ||
298 stat == STAT_READY_NO_POST_ALLOW )
299 {
300 /* INN needs a MODE READER before it will permit POST. */
301 putCmd( "MODE READER" );
302 stat = getStat();
303 }
297 switch( stat ) { 304 switch( stat ) {
298 case STAT_READY_POST_ALLOW: 305 case STAT_READY_POST_ALLOW:
299 case STAT_READY_NO_POST_ALLOW: 306 case STAT_READY_NO_POST_ALLOW:
300 Log_inf( "Connected to %s:%d", 307 Log_inf( "Connected to %s:%d",
301 inet_ntoa( sIn.sin_addr ), port ); 308 inet_ntoa( sIn.sin_addr ), port );