Code

History

Commits on master63
  1. 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
  2. Handle ping/pong packets.dhoskin committed 12 years agob37dde0
  3. Convert sendpkt() to use Bio for output.dhoskin committed 12 years agoa44079a
  4. Fix shifts in sendpkt().dhoskin committed 12 years ago48be594
  5. Add license file.dhoskin committed 12 years agofb3385b
  6. Implement a simple echo server.dhoskin committed 12 years ago7109ff7
  7. Apparently my fancy-pants array initialisation blows up the stack.dhoskin committed 12 years agof0d320c
  8. Implement recvpkt(). Untested beyond ``it compiles!''dhoskin committed 12 years agod9e59a3
  9. Convert Wspkt's buffer to an anonymous structure.dhoskin committed 12 years ago49b335d
  10. Flesh out wsreadproc() pseudocode; try to address pitfalls of blind allocation.dhoskin committed 12 years agoc954e65
  11. Add struct Wspkt.dhoskin committed 12 years ago9580abd
  12. Add enum Pkttype.dhoskin committed 12 years ago1c392c1
  13. Add skeleton for threading, and record some notes on how we should work with buffers.dhoskin committed 12 years agoda665fe
  14. Add quick note that we should convert from writev to bio.dhoskin committed 12 years ago97b9d57
  15. Implement basic sendpkt(). Packet lengths >= 126 are untested.dhoskin committed 12 years ago4b7363b
  16. Debug: successfully send a fixed websocket packet!dhoskin committed 12 years agof3eb3b1
  17. Hash websocket key header; allows connection to open succesfully!dhoskin committed 12 years agob92fdc1
  18. Implement most Websocket headers. Still need to handle nonce hashing and subprotocol selection.dhoskin committed 12 years ago9c962a1
  19. Add failhdr() to return an HTTP error message. Threw in some misc cleanups in dostuff().dhoskin committed 12 years ago0016fde
  20. Add mkfile to semi-automate installation and building. Still needs manual patch to /sys/src/cmd/ip/httpd/mkfile though.dhoskin committed 12 years agod2b60f2
  21. Update install instructions, to use the .install infrastructure to avoid recopying the executable unnecessarily.dhoskin committed 12 years ago3349a90
  22. Rename minimal.c to websocket.c, since development seems to be happening in that file.dhoskin committed 12 years ago31c711d
  23. parseheaders: use getfields() to find the colon.dhoskin committed 12 years ago1a38b98
  24. Parse headers into a linked list of key-value pairs.dhoskin committed 12 years agob8cf562
  25. Add NOTES, describing how I want to modify libhttpd to extract all headers as key-value pairs.dhoskin committed 12 years ago7605e46
  26. Print raw headers.dhoskin committed 12 years agocf17d62
  27. Add minimal httpd magic plugin.dhoskin committed 12 years ago0d9bc1b
  28. Add readme.dhoskin committed 12 years ago79a062f