From 431c88102153b8b41a15a1105e291ecf161c030e Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Wed, 18 Nov 2020 13:49:19 +0100 Subject: Started libnet --- apps/init.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'apps/init.c') diff --git a/apps/init.c b/apps/init.c index 9d64388..234853f 100644 --- a/apps/init.c +++ b/apps/init.c @@ -1,7 +1,9 @@ // MIT License, Copyright (c) 2020 Marvin Borner #include +#include #include +#include #include int main(int argc, char **argv) @@ -13,5 +15,13 @@ int main(int argc, char **argv) int wm = exec("/bin/wm", "wm", argv[1], NULL); int exec = exec("/bin/exec", "test", NULL); + /* #define http_req "GET / HTTP/1.1\r\nHost: google.de\r\n\r\n" */ + /* struct socket *socket = net_open(S_TCP); */ + /* if (socket && net_connect(socket, ip(91, 89, 253, 227), 80)) */ + /* net_send(socket, strdup(http_req), strlen(http_req)); */ + /* else */ + /* print("Couldn't connect!\n"); */ + dns_request("google", "de"); + return wm + exec; } -- cgit v1.2.3