client.h revision 66251e6ab31e5cc153fe5cae608e416dacafe9cd
#ifndef __CLIENT_H
#define __CLIENT_H
#include "imap-parser.h"
#include "mail-storage.h"
struct _Client {
int socket;
unsigned int bad_counter;
const char *cmd_tag; /* tag of command (allocated from parser pool), */
const char *cmd_name; /* command name (allocated from parser pool) */
unsigned int cmd_error:1;
found a new line */
};
if the handle is a socket. */
/* Disconnect client connection */
/* Send a line of data to client */
/* Send line of data to client, prefixed with client->tag */
/* Send BAD command error to client. msg can be NULL. */
/* Read a number of arguments. Returns TRUE if everything was read or
FALSE if either needs more data or error occured. */
/* Reads a number of string arguments. ... is a list of pointers where to
store the arguments. */
void clients_init(void);
void clients_deinit(void);
#endif