Echo server: Difference between revisions

Line 219:
f_data(o, b);
w_register(w, o);
b_billb_ecopy(b, t, e, ~t - e);
} else {
b_add(b, t);
Line 234:
 
accept(i, o, s, NONBLOCKING_INPUT | NONBLOCKING_OUTPUT);
w_watch(w, .watch(i, readc, w, i, o, b);
}
 
Line 244:
 
tcpip_listen(s, 12321, 0);
w_watch(w, .watch(s, serve, w, s);
w_press(w).press;
 
return 0;
}</lang>
 
Anonymous user