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

2010-12-10 Thread Anomit Ghosh
IMO you should be looking at the socket API rather than the libevent one for this functionality. Perhaps it'd help if you are more specific with what you are trying to develop. -- Anomit Ghosh *** To unsubscribe, s

Re: [Libevent-users] Server closes connection to client just after accept()

2010-05-12 Thread Anomit Ghosh
problem. Sorry for bothering with something that's not related to libevent. -- Anomit Ghosh *** To unsubscribe, send an e-mail to majord...@freehaven.net with unsubscribe libevent-usersin the body.

[Libevent-users] Server closes connection to client just after accept()

2010-05-12 Thread Anomit Ghosh
connection closes immediately. I tested this by using telnet to connect to the server. The printf() on L62 gets printed properly but nothing else works properly. Where am I going wrong? Even a little help would be appreciated (I'm kind of on a tight schedule :-| ). Thanks -- Anomit

[Libevent-users] Unable to construct simple socket client with bufferevent

2010-03-31 Thread Anomit Ghosh
I'm basically trying to a write a very simple echo server/client combination, just for trying out libevent. The server doesn't use libevent's bufferevent, but the client does. Code for server: http://codepad.org/nP0KsfPY Code for client: http://codepad.org/XRJAVg5m The problem seems to be that e