Exemple #1
0
int
win32_del(struct event_base *base, evutil_socket_t fd, short old, short events,
		  void *_idx)
{
	struct win32op *win32op = base->evbase;
	struct idx_info *idx = _idx;

	if (events & EV_READ)
		do_fd_clear(base, win32op, idx, 1);
	if (events & EV_WRITE)
		do_fd_clear(base, win32op, idx, 0);

	return 0;
}
Exemple #2
0
int
win32_del(struct event_base *base, evutil_socket_t fd, short old, short events,
		  void *_idx)
{
	struct win32op *win32op = base->evbase;
	struct idx_info *idx = _idx;

	event_debug(("%s: Removing event for %d", __func__, fd));
	if (events & EV_READ)
		do_fd_clear(base, win32op, idx, 1);
	if (events & EV_WRITE)
		do_fd_clear(base, win32op, idx, 0);

	return 0;
}