Code

History

Commits on master to websocket.c35+
  1. Use rc to start ramfs before execing acme, since the procexec method didn't work.dhoskin committed 12 years ago9ae2199
  2. Bgetbe(): return int status.dhoskin committed 12 years ago4ee1ab2
  3. Remove no-longer-used fd.dhoskin committed 12 years agoc4d5508
  4. Anally free() buffer even when we're about to exit.dhoskin committed 12 years ago38729ed
  5. Remove debugging output and an extraneous comment.dhoskin committed 12 years agoe68cbe6
  6. Add ramfs so we can run Acme!dhoskin committed 12 years ago2a61eff
  7. `if((x = malloc(sizeof(y))) == nil)` is un{necessarily,readably} clever.dhoskin committed 12 years ago033b204
  8. Remove extraneous globals.dhoskin committed 12 years ago87f0289
  9. Update copyright notice.dhoskin committed 12 years agoa903a54
  10. style(6), and split wscheckhdr() off from dowebsock().dhoskin committed 12 years agoa21e9d0
  11. syslog cleanups.dhoskin committed 12 years agoe60ed03
  12. Mountproc: clean up extraneous fds and separate namespace; the mounted process will no longer hang!dhoskin committed 12 years ago6fc718b
  13. alt loop: handle closing chan.dhoskin committed 12 years ago845b01b
  14. Improve error handling in pipereadproc(), pipewriteproc().dhoskin committed 12 years ago9f4197c
  15. Improve error handling in recvpkt(), sendpkt(), wspreadproc(), wswriteproc().dhoskin committed 12 years ago18c70ef
  16. recvpkt: use Bread() properly, test for errors, and move a variable to a smaller scope.dhoskin committed 12 years ago9046a6f
  17. Implement Bgetbe(); use it in recvpkt().dhoskin committed 12 years ago65f188b
  18. Change version identifier from int 13 to char[] "13".dhoskin committed 12 years ago1d8b6cc
  19. Turn on mountproc. WE HAVE CATCLOCK. I REPEAT, WE HAVE CATCLOCK!dhoskin committed 12 years ago3cbbc0d
  20. Implement mountproc and echoproc. Switch to echoproc rather than posting to /srv.dhoskin committed 12 years ago74dceb7
  21. Drive the read/write procs with alt().dhoskin committed 12 years ago784b2e1
  22. Implement (ws^(read write) pipe^(read write))^proc.dhoskin committed 12 years ago304d19a
  23. Crank up mainstacksize; hparseheaders needs more than 32k.dhoskin committed 12 years ago835c2bc
  24. If buffer size is 0, avoid malloc()ing it and going through the rest of the motions.dhoskin committed 12 years agob4ee75d
  25. Free packet buffer once we are done with it.dhoskin committed 12 years ago8b9d457
  26. It turns out that <=bufsz is an overrun when indexing a buffer.dhoskin committed 12 years agof5737e3
  27. Send stderr / fd 2 to /sys/log/websocket rather than dumping it down the websocket connection. This probably fails if /sys/log/websocket is not extant and writeable.dhoskin committed 12 years agobf6e44a
  28. Handle ping/pong packets.dhoskin committed 12 years agob37dde0
  29. Convert sendpkt() to use Bio for output.dhoskin committed 12 years agoa44079a
  30. Fix shifts in sendpkt().dhoskin committed 12 years ago48be594
  31. Implement a simple echo server.dhoskin committed 12 years ago7109ff7
  32. Apparently my fancy-pants array initialisation blows up the stack.dhoskin committed 12 years agof0d320c
  33. Implement recvpkt(). Untested beyond ``it compiles!''dhoskin committed 12 years agod9e59a3
  34. Convert Wspkt's buffer to an anonymous structure.dhoskin committed 12 years ago49b335d
  35. Flesh out wsreadproc() pseudocode; try to address pitfalls of blind allocation.dhoskin committed 12 years agoc954e65