[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[Libevent-users] Unable to construct simple socket client with bufferevent
- To: libevent-users@xxxxxxxx
- Subject: [Libevent-users] Unable to construct simple socket client with bufferevent
- From: Anomit Ghosh <anomit.ghosh@xxxxxxxxx>
- Date: Wed, 31 Mar 2010 21:23:03 +0530
- Delivered-to: archiver@xxxxxxxx
- Delivered-to: libevent-users-outgoing@xxxxxxxx
- Delivered-to: libevent-users@xxxxxxxx
- Delivery-date: Wed, 31 Mar 2010 11:53:15 -0400
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:content-type :content-transfer-encoding; bh=CLmRKqdM5eW0KPPH2ftPgMSK1bHKsHa2EUc1K7tV6Yk=; b=tnGU0ki72vNcAmI3zF9+VW2fgjtOCex1WrgcYGhk/zXzM3f9jR34vL2o+I1pL1ziyg Vi8REezSZogfja+SBq6BPC7Q2tYDZXYZHgb2xF2b/cYCOmTROoFPEb1dWXDR+dLynE9i KWS1erDYJmpWOSOzje9pCFHcKUXh9hv4fU1Ng=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; b=cjFsnhFU6JjdXl+bu6vprkbXOuK4tOx2Fjohmg2mytF8MGiIgaIJ5rmY8ewUoK6KDp xhCECh/h2BuzZ9iDicu6d4m9lW/WjTPPzOogIUQuYafvoCfZAmarvAEZ1cvfjN46ok+E 7SFqZqx8prM9wBhirI6emTcmg5pLhKh3Vhjrg=
- Reply-to: libevent-users@xxxxxxxxxxxxx
- Sender: owner-libevent-users@xxxxxxxxxxxxx
- User-agent: Thunderbird 2.0.0.22 (X11/20090608)
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.