Lines Matching refs:event

2  * util/winsock_event.h - unbound event handling for winsock on windows
53 * That means the event handler must store the readability (edge notify)
55 * The function performing recv then has to inform the event handler that
56 * the socket has blocked, and the event handler can mark it as such.
66 * To stay 'fair', instead of emptying a socket completely, the event handler
69 * Additionally, TCP accept sockets get special event support.
108 /** event timeout */
110 /** event fd readable */
112 /** event fd writable */
114 /** event signal */
116 /** event must persist */
125 /** The number of items that the winsock event handler can service.
130 * event base for winsock event handler
137 struct event** items;
142 /** array of 0 - maxsig of ptr to event for it */
143 struct event** signals;
152 * reported by the windows event system anymore, we have to
160 * event_add a sudden interest in the event has incepted.
168 * Event structure. Has some of the event elements.
170 struct event {
173 /** is event already added */
176 /** event base it belongs to */
180 /** what events this event is interested in, see EV_.. above. */
191 /** index of this event in the items array (if added) */
193 /** the event handle to wait for new events to become ready */
203 /** true if this event is a signaling WSAEvent by the user.
211 /** create event base */
221 /** free event base. Free events yourself */
223 /** set content of event */
224 void event_set(struct event *, int, short, void (*)(int, short, void *), void *);
226 /** add event to a base. You *must* call this for every event. */
227 int event_base_set(struct event_base *, struct event *);
228 /** add event to make it active. You may not change it with event_set anymore */
229 int event_add(struct event *, struct timeval *);
230 /** remove event. You may change it again */
231 int event_del(struct event *);
237 * the same struct event. create several event structs for that. */
239 int signal_add(struct event *, struct timeval *);
240 /** set signal event contents */
244 int signal_del(struct event *);
252 * retesting the event.
255 void winsock_tcp_wouldblock(struct event* ev, int eventbit);
259 * you wait for. When the event is signaled, the callback gets called.
261 * @param base: the event base.
262 * @param ev: the event structure for data storage
269 int winsock_register_wsaevent(struct event_base* base, struct event* ev,
274 * @param ev: event data storage.
276 void winsock_unregister_wsaevent(struct event* ev);