view src/login-common/client-common.h @ 2097:4e77cb0aff21 HEAD

Added %l, %r and %P variables and mail_log_prefix setting.
author Timo Sirainen <tss@iki.fi>
date Mon, 31 May 2004 21:04:46 +0300
parents dc5d0da1abe9
children 9b9d9c164a31
line wrap: on
line source

#ifndef __CLIENT_COMMON_H
#define __CLIENT_COMMON_H

#include "network.h"
#include "master.h"

struct client {
	struct ip_addr local_ip;
	struct ip_addr ip;
	struct ssl_proxy *proxy;

	int fd;
	struct io *io;

	struct auth_request *auth_request;
	unsigned int master_tag;
	master_callback_t *master_callback;

	char *virtual_user;
	/* ... */
};

struct client *client_create(int fd, int ssl, const struct ip_addr *local_ip,
			     const struct ip_addr *ip);

unsigned int clients_get_count(void);
void clients_notify_auth_connected(void);
void clients_destroy_all(void);

void clients_init(void);
void clients_deinit(void);

#endif