client.c revision 7cb128dc4cae2a03a742f63ba7afee23c78e3af0
/* Copyright (c) 2011-2015 Dovecot authors, see the included COPYING file */
#include "lib.h"
#include "llist.h"
#include "ioloop.h"
#include "istream.h"
#include "ostream.h"
#include "strescape.h"
#include "master-service.h"
#include "mail-command.h"
#include "mail-session.h"
#include "mail-user.h"
#include "mail-domain.h"
#include "mail-ip.h"
#include "client-export.h"
#include "client.h"
#include <unistd.h>
#define CLIENT_MAX_SIMULTANEOUS_ITER_COUNT 1000
#define MAX_INBUF_SIZE 1024
{
client->iter_count++;
return TRUE;
return FALSE;
return TRUE;
}
static int
const char **error_r)
{
*error_r = "Missing command";
return -1;
}
args++;
*error_r = "Unknown command";
return -1;
}
static const char *const*
{
const char *line;
char **args;
unsigned int i;
return NULL;
return (void *)args;
}
{
int ret;
case -2:
i_error("BUG: Stats client sent too much data");
return;
case -1:
return;
}
if (ret < 0) {
return;
}
if (ret == 0) {
break;
}
}
}
{
int ret = 1;
return 1;
}
if (ret > 0) {
}
return ret;
}
{
}
{
return client;
}
{
}
{
i_error("close(client) failed: %m");
}
void clients_destroy_all(void)
{
}
}