[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[Libevent-users] About the parameter of callback
- To: "libevent-users" <libevent-users@xxxxxxxxxxxxx>
- Subject: [Libevent-users] About the parameter of callback
- From: "守望者一号" <xb.zhou@xxxxxx>
- Date: Sat, 29 Jan 2011 02:24:53 +0800
- Delivered-to: archiver@xxxxxxxx
- Delivered-to: libevent-users-outgoing@xxxxxxxx
- Delivered-to: libevent-users@xxxxxxxx
- Delivery-date: Fri, 28 Jan 2011 13:25:17 -0500
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qq.com; s=s0907; t=1296239096; bh=NDzeV14oJIf+USlpp7VOyzDI6aXqYJ6048VqG4VAdJw=; h=X-QQ-SSF:X-QQ-BUSINESS-ORIGIN:X-Originating-IP:X-QQ-STYLE: X-QQ-mid:From:To:Subject:Mime-Version:Content-Type: Content-Transfer-Encoding:Date:X-Priority:Message-ID:X-QQ-MIME: X-Mailer:X-QQ-Mailer; b=bHo8ZVrJmedbzBPwufM7AVUMGRMQ0gON+ACv5t9WxRxzDP+jzscm2wwyNXQ1jeiic vedhn+/55kMnwV/C9TABPs6yqQKRZDGpEopufHYuKsMmYj3rbPruKwOgThl2xcz
- Reply-to: libevent-users@xxxxxxxxxxxxx
- Sender: owner-libevent-users@xxxxxxxxxxxxx
The callback's prototype is
(void)(*)(int, short, void*)
the second parameter indicates what kind of event(s) happen.
I found libevent-1.4.10 didn't have EV_ERROR.
So my question is:
When monitoring a socket, what value will be set to the second parameter if an error occurred on the socket?
thanks