Loading...
Searching...
No Matches
loop.h
Go to the documentation of this file.
1
16#ifndef IMQUIC_LOOP_H
17#define IMQUIC_LOOP_H
18
19#include <stdint.h>
20
21#include <glib.h>
22
23#include "network.h"
24
26int imquic_loop_init(void);
29void imquic_loop_wakeup(void);
31void imquic_loop_deinit(void);
32
34typedef struct imquic_source {
36 GSource parent;
38
41 /* \todo Refactor the event loop */
43
47
61imquic_source *imquic_loop_add_timer(guint ms, GSourceFunc func, gpointer data);
63
64#endif
void imquic_loop_wakeup(void)
Helper method to wake the event loop, in case it's waiting for something and we need to refresh the l...
Definition loop.c:136
imquic_source * imquic_loop_poll_endpoint(void *e)
Monitor an endpoint socket as part of the loop.
Definition loop.c:148
imquic_source * imquic_loop_add_timer(guint ms, GSourceFunc func, gpointer data)
Helper method to add a timed source to the loop, to fire the provided callback every tot milliseconds...
Definition loop.c:173
imquic_source * imquic_loop_poll_connection(void *c)
Monitor events associated to a connection in the core as part of the loop.
Definition loop.c:159
void imquic_loop_deinit(void)
Uninitialize the event loop.
Definition loop.c:140
struct imquic_source imquic_source
Event source base.
int imquic_loop_init(void)
Initialize the event loop.
Definition loop.c:116
struct imquic_connection_event imquic_connection_event
Events meant for connections.
Networking utilities (headers)
Events meant for connections.
Definition loop.h:40
Event source base.
Definition loop.h:34
GSource parent
All event sources are actually extensions of the GLib GSource.
Definition loop.h:36