| 18 |
#include "stdafx.h" |
#include "stdafx.h" |
| 19 |
#include "afxsock.h" |
#include "afxsock.h" |
| 20 |
#include ".\innd.h" |
#include ".\innd.h" |
|
#include ".\nntp_log.h" |
|
| 21 |
#include ".\innd_service.h" |
#include ".\innd_service.h" |
| 22 |
#include ".\bbs_fun.h" |
#include ".\bbs_fun.h" |
| 23 |
|
|
| 47 |
// System settings |
// System settings |
| 48 |
const char* log_file = _T("innd.log"); |
const char* log_file = _T("innd.log"); |
| 49 |
|
|
| 50 |
nntp_log::nlog.open(log_file,ios_base::out | ios_base::app); |
nlog.open(log_file,ios_base::out | ios_base::app); |
| 51 |
|
|
| 52 |
if(!AfxSocketInit()) |
if(!AfxSocketInit()) |
| 53 |
{ |
{ |
| 54 |
nntp_log::nlog << "Sockets init failed" << endl; |
nlog << nntp_log::log_head << "Sockets init failed" << endl; |
| 55 |
return 3; |
return 3; |
| 56 |
} |
} |
| 57 |
|
|