[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[Libevent-users] Method to get the fd associated with a http evcon object



Hi,

Is there a way to get the file descriptor associated with the evcon object of a request (evhttp_request)?

/**********/
struct evhttp_connection {
        /* we use this tailq only if this connection was created for an http
         * server */
        TAILQ_ENTRY(evhttp_connection) next;

        evutil_socket_t fd;  >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> This fd

        struct bufferevent *bufev;
        .....
        ......
/***********/
Thank you.

Regards,
Alap