~ubuntu-branches/ubuntu/trusty/haproxy/trusty-backports

« back to all changes in this revision

Viewing changes to include/types/fd.h

  • Committer: Bazaar Package Importer
  • Author(s): Arnaud Cornet
  • Date: 2009-06-26 00:11:01 UTC
  • mfrom: (1.1.6 upstream) (2.1.4 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090626001101-qo261ke2mjh3d8cn
* New Upstream Version (Closes: #534583).
* Add contrib directory in docs

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
  include/types/fd.h
3
3
  File descriptors states.
4
4
 
5
 
  Copyright (C) 2000-2007 Willy Tarreau - w@1wt.eu
6
 
  
 
5
  Copyright (C) 2000-2008 Willy Tarreau - w@1wt.eu
 
6
 
7
7
  This library is free software; you can redistribute it and/or
8
8
  modify it under the terms of the GNU Lesser General Public
9
9
  License as published by the Free Software Foundation, version 2.1
65
65
                int (*f)(int fd);            /* read/write function */
66
66
                struct buffer *b;            /* read/write buffer */
67
67
        } cb[DIR_SIZE];
68
 
        struct task *owner;                  /* the session (or proxy) associated with this fd */
 
68
        void *owner;                         /* the session (or proxy) associated with this fd */
69
69
        unsigned char state;                 /* the state of this fd */
70
70
        unsigned char ev;                    /* event seen in return of poll() : FD_POLL_* */
71
71
        struct sockaddr *peeraddr;           /* pointer to peer's network address, or NULL if unset */
72
72
        socklen_t peerlen;                   /* peer's address length, or 0 if unset */
73
 
        struct listener *listener;           /* the listener which created this fd, or NULL if unset */
74
73
};
75
74
 
76
75
/*
100
99
        int  REGPRM2 (*cond_c)(const int fd, int dir);       /* clear polling on <fd> for <dir> if set */
101
100
        void REGPRM1    (*rem)(const int fd);                /* remove any polling on <fd> */
102
101
        void REGPRM1    (*clo)(const int fd);                /* mark <fd> as closed */
103
 
        void REGPRM2   (*poll)(struct poller *p, struct timeval *exp); /* the poller itself */
 
102
        void REGPRM2   (*poll)(struct poller *p, int exp);   /* the poller itself */
104
103
        int  REGPRM1   (*init)(struct poller *p);            /* poller initialization */
105
104
        void REGPRM1   (*term)(struct poller *p);            /* termination of this poller */
106
105
        int  REGPRM1   (*test)(struct poller *p);            /* pre-init check of the poller */