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

[Libevent-users] evrpc_status structure.



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.