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

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



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 even though the connection is established
but the server isn't receiving any data from the client and it quits.
Where am I going wrong?
***********************************************************************
To unsubscribe, send an e-mail to majordomo@xxxxxxxxxxxxx with
unsubscribe libevent-users    in the body.