|
|
1.1 ! root 1: /* test.c - main */ ! 2: ! 3: #include <conf.h> ! 4: #include <kernel.h> ! 5: #include <network.h> ! 6: ! 7: /*------------------------------------------------------------------------ ! 8: * main -- start UDP echo server and then run Xinu pseudo-shell ! 9: *------------------------------------------------------------------------ ! 10: */ ! 11: main() ! 12: { ! 13: int udpecho(); ! 14: ! 15: /* start rwho daemon and input processes */ ! 16: ! 17: rwho(); ! 18: ! 19: /* start UDP echo server */ ! 20: ! 21: resume( create(udpecho, 800, 30, "UDPecho", 0) ); ! 22: ! 23: while (TRUE) { ! 24: login(CONSOLE); ! 25: shell(CONSOLE); ! 26: } ! 27: }
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.