projects
/
cascardo
/
gnio.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Make things inherit from GInitiallyUnowned, some more socket changes
[cascardo/gnio.git]
/
test
/
test-server.c
1
#include <gio/gio.h>
2
#include <gnio/gsocket.h>
3
#include <glib.h>
4
#include <glib/gprintf.h>
5
6
GMainLoop *loop;
7
8
int main (int argc, char *argv[])
9
{
10
GSocket *socket;
11
12
g_thread_init (NULL);
13
14
g_type_init ();
15
16
loop = g_main_loop_new (NULL, FALSE);
17
18
socket = g_socket_new ();
19
20
g_socket_set_blocking (socket, FALSE);
21
22
g_main_loop_run (loop);
23
24
return 0;
25
}