File: nntp.h

package info (click to toggle)
newspost 2.1.1-4
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k, sarge
  • size: 404 kB
  • ctags: 469
  • sloc: ansic: 4,893; makefile: 120; sh: 72
file content (25 lines) | stat: -rw-r--r-- 783 bytes parent folder | download
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
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
#ifndef __NNTP_H__
#define __NNTP_H__

#include "newspost.h"

#define NNTP_AUTHENTICATION_SUCCESSFUL "281"
#define NNTP_MORE_AUTHENTICATION_REQUIRED "381"
#define NNTP_UNKNOWN_COMMAND "500"
#define NTTP_AUTHENTICATION_UNSUCCESSFUL "502"
#define NNTP_PROCEED_WITH_POST "340"
#define NNTP_POSTING_NOT_ALLOWED "440"
#define NNTP_ARTICLE_POSTED_OK "240"
#define NNTP_POSTING_FAILED "441"
#define NNTP_DATE "111"

boolean nntp_logon(newspost_data *data);
void nntp_logoff();
int nntp_issue_command(const char *command);
int nntp_get_response(char *response);
int nntp_post(const char *subject, newspost_data *data, 
	      const char *buffer, long length,
	      boolean no_ui_updates);

#endif /* __NNTP_H__ */