[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[Libevent-users] evrpc_status structure.
- To: libevent-users@xxxxxxxx
- Subject: [Libevent-users] evrpc_status structure.
- From: fabien pichot <pichot.fabien@xxxxxxxxx>
- Date: Mon, 21 Jan 2013 22:28:41 +0100
- Delivered-to: archiver@xxxxxxxx
- Delivered-to: libevent-users-outgoing@xxxxxxxx
- Delivered-to: libevent-users@xxxxxxxx
- Delivery-date: Mon, 21 Jan 2013 16:28:45 -0500
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:date:message-id:subject:from:to :content-type; bh=G518qvBAaHynEzMJf7/lH5w4y3AucSUr+z/dExBT0NQ=; b=b8/Jq+uLe0qMdxlcXqVBqM8C80Uzm2ECao2N4ksadMJmHpU4YEf8+nDgrdzEn0rc2W pdb9lAJf5WIURMTqznMN6nkor8xX+WNAkeUkKqpQxni5V81cwJAFSm+MiGXiya0wDahV WNO5dejiCZrnjm0V2zcNPtwVX7OS2v0YkePGsaAnVk70a9M4SzxAfgdRT9lqo99VaGtJ 6Mm1KNgzC2TFN1T2w+jrygwxRZ+EM99YNGO2yVY5JOLaphKPHnaghvj1xRE3rxUTTIRQ xDMK2CRScDbIgdlS8YHi9Z681EPCMoog3VwX3XgWZupqnTzrQrVYHLsSaeWauGIqtQtZ qgcA==
- Reply-to: libevent-users@xxxxxxxxxxxxx
- Sender: owner-libevent-users@xxxxxxxxxxxxx
Hello,
I'm currently working on a prototype of decentralized VPN, and I'm
using libevent for anything related to network.
Recently, I decided to write RPC to communicate between my nodes. And
after a quick hovering on evrpc/evhttp, I decided to give it a shot.
However, when I tried to check for errors in the callback of
EVRPC_MAKE_REQUEST, I realized that the struct evrpc_status is only
forward declared in event2/rpc.h. In consequence, there is no portable
and forward compatible way to access the error field nor to compare it
against any of it's error codes, as they are defined in
event2/rpc_struct.h.
Am I doing things wrong ?
I'll probably submit a patch in the near future to make a public API
to access theses fields, if no one tell me not to so.
--
Pichot Fabien -epitech_2013-
Teaching assistant C/C++
^[:wq
***********************************************************************
To unsubscribe, send an e-mail to majordomo@xxxxxxxxxxxxx with
unsubscribe libevent-users in the body.