notify-connection.c revision e34d170f8f0e084bd94bfbc1a7085ece67e508df
/* Copyright (c) 2012 Dovecot authors, see the included COPYING file */
#include "lib.h"
#include "ioloop.h"
#include "network.h"
#include "istream.h"
#include "ostream.h"
#include "llist.h"
#include "strescape.h"
#include "master-service.h"
#include "replication-common.h"
#include "replicator-connection.h"
#include "notify-connection.h"
#define MAX_INBUF_SIZE 8192
#define CONNECTION_IS_FIFO(conn) \
struct notify_connection {
int refcount;
int fd;
};
{
if (CONNECTION_IS_FIFO(conn))
return TRUE;
return FALSE;
}
{
}
static int
{
const char *const *args;
enum replication_priority priority;
/* <username> \t <priority> */
i_error("Client sent invalid input");
return -1;
}
return -1;
}
if (priority != REPLICATION_PRIORITY_SYNC)
else {
}
return 0;
}
{
const char *line;
int ret;
case -2:
/* buffer full */
i_error("Client sent too long line");
(void)notify_input_error(conn);
return;
case -1:
/* disconnected */
return;
}
T_BEGIN {
} T_END;
if (ret < 0) {
if (!notify_input_error(conn))
return;
}
}
}
{
struct notify_connection *conn;
if (!fifo) {
}
}
{
return;
}
{
if (!CONNECTION_IS_FIFO(conn))
}
void notify_connections_destroy_all(void)
{
}