コード例 #1
0
ファイル: win32select.c プロジェクト: plusxutianyou/Libevent
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;
}
コード例 #2
0
ファイル: win32select.c プロジェクト: jocelyn/EiffelStudio
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;
}