view src/login-common/client-common.h @ 1275:af685269ead0 HEAD

login: Wait until we're connected to auth process before executing command from client. inetd usage: --group=name can now specify which login group to use. Default is the binary name before '-' character (ie. imap or pop3).
author Timo Sirainen <tss@iki.fi>
date Wed, 05 Mar 2003 00:38:07 +0200
parents 86b8c9cb7ac0
children 43815588dd6b
line wrap: on
line source

#ifndef __CLIENT_COMMON_H
#define __CLIENT_COMMON_H

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

struct client {
	struct ip_addr ip;

	int fd;
	struct io *io;

        struct auth_request *auth_request;
	master_callback_t *master_callback;

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

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

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

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

#endif