Re: [Libevent-users] Plan for backporting bugfixes to stable releases

2010-12-10 Thread Nick Mathewson
On Fri, Dec 10, 2010 at 11:09 PM, Kevin Bowling wrote: > On Fri, Dec 10, 2010 at 8:45 PM, Nick Mathewson wrote: >> >> Hi, all!  Here's a thing I wrote up to try to explain a proposed >> policy for what to backport to 2.0.x once it's stable, and what to >> backport to 1.4.x after 2.0.x is released

Re: [Libevent-users] Plan for backporting bugfixes to stable releases

2010-12-10 Thread Kevin Bowling
On Fri, Dec 10, 2010 at 8:45 PM, Nick Mathewson wrote: > Hi, all! Here's a thing I wrote up to try to explain a proposed > policy for what to backport to 2.0.x once it's stable, and what to > backport to 1.4.x after 2.0.x is released. Absent major problems with > it, the current Libevent core d

[Libevent-users] Plan for backporting bugfixes to stable releases

2010-12-10 Thread Nick Mathewson
Hi, all! Here's a thing I wrote up to try to explain a proposed policy for what to backport to 2.0.x once it's stable, and what to backport to 1.4.x after 2.0.x is released. Absent major problems with it, the current Libevent core developers are probably going to stick with this for official rele

Re: [Libevent-users] How http client can send back message to server?

2010-12-10 Thread Zulfiqer Sekender
Thanks a lot for the reply. We are using 2.0.7. Now I will install 2.0.9 and will check if that version solves this problem. This client program is communicating with open source http erlang mochiweb server. That server should be fine as that server is doing that functionality (exchanging heartb

Re: [Libevent-users] How http client can send back message to server?

2010-12-10 Thread Nick Mathewson
On Fri, Dec 10, 2010 at 12:18 PM, Zulfiqer Sekender wrote: > Hi, > > I have to develop a simple http client which can communicate with a http > server. The client is sending evhttp_make_request(). The server sends "HT:" > heartbeat in response after certain time and when the client gets "HT:" each

Re: [Libevent-users] A good book or web link on evhttp

2010-12-10 Thread Nick Mathewson
On Fri, Dec 10, 2010 at 8:46 AM, Zulfiqer Sekender wrote: > Hi, > > I have to use some existing code which uses evhttp extensively. Can someone > please send me name of good book or web link on evhttp? There isn't much at the moment. The closest you can get for now is looking at the doxygen comme

Re: [Libevent-users] How do I get the client IP address?

2010-12-10 Thread Nick Mathewson
On Fri, Dec 10, 2010 at 5:51 AM, Christian Dahlqvist wrote: > Hi, > > I am new to libevent, and am currently writing my first server using > libevent 2.0.x. I have been trying to find an example of how to get > the clients IP address when a new client connects, but have so far not > found any supp

[Libevent-users] How http client can send back message to server?

2010-12-10 Thread Zulfiqer Sekender
Hi, I have to develop a simple http client which can communicate with a http server. The client is sending evhttp_make_request(). The server sends "HT:" heartbeat in response after certain time and when the client gets "HT:" each time it will send "HA:" as heartbeat acknowledgement. Transferi

[Libevent-users] A good book or web link on evhttp

2010-12-10 Thread Zulfiqer Sekender
Hi, I have to use some existing code which uses evhttp extensively. Can someone please send me name of good book or web link on evhttp? I badly need your help. Please, send me a reply. Thanks. - Zulfiqer

RE: [Libevent-users] How do I get the client IP address?

2010-12-10 Thread Kelly Brock
Hi Christian, As a question/suggestion, why are you not using the evconnlistener api, it would give you all the data you desire. I.e. the callback is of the form: void _acceptor( struct evconnlistener* el, evutil_socket_t fd, struct sockaddr* addr, int addrLen, void* context ) T

Re: [Libevent-users] How do I get the client IP address?

2010-12-10 Thread Kevin Bowling
On Fri, Dec 10, 2010 at 5:10 AM, Christian Dahlqvist wrote: > I am unfortunately not doing HTTP, so that approach will not work for me. > > I am building my code on a bufferevent sample for a custom protocol, > and I guess I could try to get it based on the raw socket, but am > reluctant to do so

Re: [Libevent-users] How do I get the client IP address?

2010-12-10 Thread Christian Dahlqvist
I am unfortunately not doing HTTP, so that approach will not work for me. I am building my code on a bufferevent sample for a custom protocol, and I guess I could try to get it based on the raw socket, but am reluctant to do so since it would possibly make it more difficult to port later on. The p

Re: [Libevent-users] How do I get the client IP address?

2010-12-10 Thread Dirk-Willem van Gulik
Op 10 dec 2010, om 11:51 heeft Christian Dahlqvist het volgende geschreven: > I am new to libevent, and am currently writing my first server using > libevent 2.0.x. I have been trying to find an example of how to get > the clients IP address when a new client connects, but have so far not > found

Re: [Libevent-users] How do I get the client IP address?

2010-12-10 Thread Anomit Ghosh
On Fri, Dec 10, 2010 at 4:21 PM, Christian Dahlqvist wrote: > Hi, > > I am new to libevent, and am currently writing my first server using > libevent 2.0.x. I have been trying to find an example of how to get > the clients IP address when a new client connects, but have so far not > found any supp

[Libevent-users] How do I get the client IP address?

2010-12-10 Thread Christian Dahlqvist
Hi, I am new to libevent, and am currently writing my first server using libevent 2.0.x. I have been trying to find an example of how to get the clients IP address when a new client connects, but have so far not found any support for it in the libevent API. Can somepone please help point me in the