| 1 |
/*******************************************************/
|
| 2 |
/* */
|
| 3 |
/* LeafOK Innbbsd */
|
| 4 |
/* Copyright (C) LeafOK.com, 2003-2005 */
|
| 5 |
/* */
|
| 6 |
/* Programmed by Leaf */
|
| 7 |
/* E-mail:leaflet@leafok.com QQ:6049044 */
|
| 8 |
/* */
|
| 9 |
/* http://bbs.leafok.com */
|
| 10 |
/* http://bbs.leafok.net */
|
| 11 |
/* http://bbs.fenglin.info */
|
| 12 |
/* */
|
| 13 |
/*******************************************************/
|
| 14 |
|
| 15 |
#pragma once
|
| 16 |
#include ".\base.h"
|
| 17 |
|
| 18 |
class base_active :
|
| 19 |
public base
|
| 20 |
{
|
| 21 |
public:
|
| 22 |
static UINT uThreadCount;
|
| 23 |
base_active(void);
|
| 24 |
~base_active(void);
|
| 25 |
virtual int s_connect(const char* hostaddr, unsigned int port);
|
| 26 |
virtual int s_close(void);
|
| 27 |
virtual int work(bool get = false, bool use_ihave = false);
|
| 28 |
protected:
|
| 29 |
int get_article(const char* news_server, unsigned int news_id);
|
| 30 |
int get_cancel(const char* news_server, unsigned int news_id, int step=1);
|
| 31 |
int post_article(const char* news_server);
|
| 32 |
int post_cancel(const char* news_server);
|
| 33 |
int ihave_article(const char* news_server);
|
| 34 |
int ihave_cancel(const char* news_server);
|
| 35 |
int get(void);
|
| 36 |
int post(void);
|
| 37 |
int ihave(void);
|
| 38 |
bool check_todo_list(void);
|
| 39 |
virtual int w_call(void);
|
| 40 |
static DWORD SendThread(LPVOID pParam);
|
| 41 |
};
|