| 14 |
|
|
| 15 |
#include "StdAfx.h" |
#include "StdAfx.h" |
| 16 |
#include ".\controld.h" |
#include ".\controld.h" |
| 17 |
#include ".\nntp_active.h" |
#include ".\base_active.h" |
| 18 |
#include ".\App_common.h" |
#include ".\App_common.h" |
| 19 |
|
|
| 20 |
using namespace std; |
using namespace std; |
| 176 |
if (cmd == "ACTIVE") |
if (cmd == "ACTIVE") |
| 177 |
{ |
{ |
| 178 |
if (sscanf(out,"%*s %0s",temp) == 1) |
if (sscanf(out,"%*s %0s",temp) == 1) |
| 179 |
cmd = struupr(temp); |
cmd = strupr(temp); |
| 180 |
else |
else |
| 181 |
cmd = ""; |
cmd = ""; |
| 182 |
cmd.Trim(); |
cmd.Trim(); |
| 186 |
if (this->access.control) |
if (this->access.control) |
| 187 |
{ |
{ |
| 188 |
this->s_send("201 Entering native mode"); |
this->s_send("201 Entering native mode"); |
| 189 |
nntp_active nntpClient; |
base_active nntpClient; |
| 190 |
nntpClient.configure(this->innd_id,this->innd_name,this->innd_server,this->innd_uid,"",0,this->w_conn_str); |
nntpClient.configure(this->innd_id,this->innd_name,this->innd_server,this->innd_uid,"",0,this->w_conn_str); |
| 191 |
if (cmd == "POST") // Get & Post |
if (cmd == "POST") // Get & Post |
| 192 |
{ |
{ |
| 241 |
|
|
| 242 |
int controld::Shutdown(void) |
int controld::Shutdown(void) |
| 243 |
{ |
{ |
| 244 |
nntp_active nntpClient; |
base_active nntpClient; |
| 245 |
|
|
| 246 |
if (this->thread_terminate) |
if (this->thread_terminate) |
| 247 |
return 1; |
return 1; |