root/tags/omega-1.0.0-rc2/tools/daemon/helo_syntax.h

Revision 154, 0.8 KB (checked in by malte, 2 years ago)
Line 
1#ifndef _HELO_SYNTAX_H
2
3#define _HELO_SYNTAX_H
4
5#define NO_ERROR                0
6
7#define MAX_MSG_SIZE            1025
8
9#define MSG_HELO_CMD            10015
10
11#define MSG_BAD_SYNTAX          10016
12
13#define MSG_CMD_OK              10017
14
15#include <sys/types.h>
16
17#include <stdlib.h>
18
19#include <string.h>
20
21#include <stdio.h>
22
23typedef struct {
24
25    char ip[MAX_MSG_SIZE];
26
27    char host[MAX_MSG_SIZE];
28
29    /*
30     Request data.
31     */
32
33    char rd[MAX_MSG_SIZE];
34
35    /*
36     Status data.
37     */
38
39    char sd[MAX_MSG_SIZE];
40
41} license_data_type;
42
43extern char client_ip[MAX_MSG_SIZE];
44
45extern char *message(int message_number);
46
47extern void say(char *format, char *message);
48
49extern int send_line(int fd, char *src, size_t len);
50
51int helo_syntax(int fd, license_data_type *ld, char *buff);
52
53#else
54#
55#endif
Note: See TracBrowser for help on using the browser.