made minor changes

This commit is contained in:
2020-05-16 04:52:06 +00:00
parent 57ca185651
commit 98e2838edf
4 changed files with 51 additions and 7 deletions

3
mio/t/b.sh Executable file
View File

@ -0,0 +1,3 @@
#!/bin/sh
exec cat /home/hyung-hwan/projects/hawk/lib/run.c

15
mio/t/http1.hawk Normal file
View File

@ -0,0 +1,15 @@
BEGIN {
x = sys::socket (sys::AF_INET, sys::SOCK_STREAM, 0);
sys::connect (x, "127.0.0.1:9988");
msg = b"GET /home/hyung-hwan/projects/mio/bld/b.sh HTTP/1.0\r\n\
Host: www.google.com\r\n\
Connection: Keep-Alive\r\n\r\n";
sys::write (x, msg);
while (sys::read (x, buf) >= 0) printf ("%s", buf);
sys::close (x);
}