client.h revision b12eeefe58793031ebf4cff240a39ca33680b6e8
#ifndef __CLIENT_H
#define __CLIENT_H
#include "network.h"
#include "master.h"
#include "client-common.h"
#include "auth-client.h"
struct pop3_client {
struct client common;
time_t created;
int refcount;
struct istream *input;
struct ostream *output;
time_t last_input;
unsigned int bad_counter;
char *last_user;
char *apop_challenge;
struct auth_connect_id auth_id;
unsigned int tls:1;
unsigned int secured:1;
unsigned int authenticating:1;
unsigned int auth_connected:1;
unsigned int destroyed:1;
};
void client_destroy(struct pop3_client *client, const char *reason);
void client_send_line(struct pop3_client *client, const char *line);
void client_syslog(struct pop3_client *client, const char *format, ...)
__attr_format__(2, 3);
int client_read(struct pop3_client *client);
void client_input(void *context);
void client_ref(struct pop3_client *client);
int client_unref(struct pop3_client *client);
void clients_init(void);
void clients_deinit(void);
#endif