~ubuntu-branches/ubuntu/wily/dovecot/wily

« back to all changes in this revision

Viewing changes to src/doveadm/client-connection.h

  • Committer: Package Import Robot
  • Author(s): Jaldhar H. Vyas
  • Date: 2013-09-09 00:57:32 UTC
  • mfrom: (1.13.11)
  • mto: (4.8.5 experimental) (1.16.1)
  • mto: This revision was merged to the branch mainline in revision 97.
  • Revision ID: package-import@ubuntu.com-20130909005732-dn1eell8srqbhh0e
Tags: upstream-2.2.5
ImportĀ upstreamĀ versionĀ 2.2.5

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#ifndef CLIENT_CONNECTION_H
2
2
#define CLIENT_CONNECTION_H
3
3
 
4
 
struct client_connection *client_connection_create(int fd, int listen_fd);
 
4
#include "net.h"
 
5
 
 
6
struct client_connection {
 
7
        pool_t pool;
 
8
 
 
9
        int fd;
 
10
        struct io *io;
 
11
        struct istream *input;
 
12
        struct ostream *output;
 
13
        struct ssl_iostream *ssl_iostream;
 
14
        struct ip_addr local_ip, remote_ip;
 
15
        unsigned int local_port, remote_port;
 
16
        const struct doveadm_settings *set;
 
17
 
 
18
        unsigned int handshaked:1;
 
19
        unsigned int authenticated:1;
 
20
};
 
21
 
 
22
struct client_connection *
 
23
client_connection_create(int fd, int listen_fd, bool ssl);
5
24
void client_connection_destroy(struct client_connection **conn);
6
25
 
7
26
struct ostream *client_connection_get_output(struct client_connection *conn);