1 /* Startup object is generated with the initialstate flag set by the
2 * system to start the computation up */
4 task Startup(StartupObject s {initialstate}) {
5 System.printString("Starting\n");
6 ServerSocket ss=new ServerSocket(8000);
7 System.printString("Creating ServerSocket\n");
8 taskexit(s {!initialstate}); /* Turns initial state flag off, so this task won't refire */
11 task AcceptConnection(ServerSocket ss{SocketPending}) {
13 System.printString("Creating Socket\n");
16 task IncomingIO(Socket s{IOPending}) {
17 byte[] b=new byte[10];
19 byte[] b2=new byte[length];
21 for(i=0;i<length;i++) {
24 System.printString("receiving input\n");