fifo-input-connection.c revision 6ef83bcdc4e40d6b387857e5f7d58cd86c71ec50
cdaeb34871aa28b96c0d80b474f3c8f9805d0388vboxsync/* Copyright (c) 2011-2017 Dovecot authors, see the included COPYING file */
cdaeb34871aa28b96c0d80b474f3c8f9805d0388vboxsyncstatic struct fifo_input_connection *fifo_conns = NULL;
a9b62afc62b28da7a1a77f34259f8013892d9664vboxsyncfifo_input_connection_request(const char *const *args, const char **error_r)
3c4dd6a990d38eba0aad586bb42f72d2b10b682avboxsync return mail_session_disconnect_parse(args, error_r);
3c4dd6a990d38eba0aad586bb42f72d2b10b682avboxsyncstatic void fifo_input_connection_input(struct fifo_input_connection *conn)
cdaeb34871aa28b96c0d80b474f3c8f9805d0388vboxsync while ((line = i_stream_next_line(conn->input)) != NULL) T_BEGIN {
cdaeb34871aa28b96c0d80b474f3c8f9805d0388vboxsync if (fifo_input_connection_request(args, &error) < 0)
cdaeb34871aa28b96c0d80b474f3c8f9805d0388vboxsyncstruct fifo_input_connection *fifo_input_connection_create(int fd)
cdaeb34871aa28b96c0d80b474f3c8f9805d0388vboxsync conn->input = i_stream_create_fd(fd, MAX_INBUF_SIZE);
cdaeb34871aa28b96c0d80b474f3c8f9805d0388vboxsync conn->io = io_add(fd, IO_READ, fifo_input_connection_input, conn);