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

Re: [Libevent-users] evrpc_status structure.



On Mon, Jan 21, 2013 at 9:28 PM, fabien pichot <pichot.fabien@xxxxxxxxx> wrote:
> 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.
>

A public API to access these fields would be the right thing.  First,
make sure that we didn't add them already in the 2.1 series -- but I'm
pretty sure we haven't done so yet.

best wishes,
-- 
Nick
***********************************************************************
To unsubscribe, send an e-mail to majordomo@xxxxxxxxxxxxx with
unsubscribe libevent-users    in the body.