diff options
author | Pavel Vatagin <pavelvat@gmail.com> | 2016-04-09 12:27:30 (GMT) |
---|---|---|
committer | Pavel Vatagin <pavelvat@gmail.com> | 2016-04-09 22:17:24 (GMT) |
commit | 160aef002f961c4d72d86b3b4b8c4b71705195ee (patch) | |
tree | 9b54dcba94e820f2662e556324243479f0e439a3 /src/libsoup-test.c | |
parent | 4accc990de7741f4d5aa37e368a732f3d47d803a (diff) | |
download | mxe-160aef002f961c4d72d86b3b4b8c4b71705195ee.zip mxe-160aef002f961c4d72d86b3b4b8c4b71705195ee.tar.gz mxe-160aef002f961c4d72d86b3b4b8c4b71705195ee.tar.bz2 |
add package libsoup
Diffstat (limited to 'src/libsoup-test.c')
-rw-r--r-- | src/libsoup-test.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/libsoup-test.c b/src/libsoup-test.c new file mode 100644 index 0000000..140d604 --- /dev/null +++ b/src/libsoup-test.c @@ -0,0 +1,17 @@ +/* + * This file is part of MXE. + * See index.html for further information. + */ + +#include <libsoup/soup.h> + +int main() +{ + SoupServer *server; + GError *error; + + server = soup_server_new (SOUP_SERVER_SERVER_HEADER, "simple-httpd ", SOUP_SERVER_TLS_CERTIFICATE, NULL, NULL); + soup_server_listen_all (server, 1234, SOUP_SERVER_LISTEN_HTTPS, &error); + + return 0; +} |