File: NNTPSource.h

package info (click to toggle)
lusernet.app 0.4.3-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 828 kB
  • sloc: objc: 8,495; makefile: 22
file content (39 lines) | stat: -rw-r--r-- 557 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
/*
copyright 2002 Alexander Malmberg <alexander@malmberg.org>
*/

#ifndef NNTPSource_h
#define NNTPSource_h

@class NNTPServer;
@class MsgDB;
@class NSMutableDictionary;

struct nntpsource_group_s
{
	int idx;
	int last_num;
};


@interface NNTPSource : NSObject <Msg_Source>
{
	NNTPServer *server;
	MsgDB *mdb;
	msg_id_t mmid;

	int num_groups;
	struct nntpsource_group_s *groups;

	char *cur_host,*cur_sport;

	NSMutableDictionary *request_map;
}

-(void) postArticle: (unsigned char *)data  length: (int)length
	sender: (NSObject *)sender;

@end

#endif