Skip to content

Latest commit

 

History

History
22 lines (14 loc) · 1.1 KB

TODO.md

File metadata and controls

22 lines (14 loc) · 1.1 KB

CIRCUS

TODO list and known bugs

  • Gracefully exit (close sockets, FDs, etc.)

    • see man page for atexit(3)
  • On socket close (specifically noticed after a PING without response), select will keep marking sockfd as ready to read, but the read results in an error, causing an infinite loop

    • try reconnecting to socket if that happens
  • Call shutdown() on sockets before closing?

  • Could a server ever send an invalid message? If so, validate messages

  • Improve ircread() code to handle the case that no \n/\r is found within BUF_SIZE * 2 characters

  • Implement a "message queue" that will hold messages to be sent to the server in the order they were issued whenever the server socket is ready for writing

  • Use recursive make

  • Create irc_svconn and irc_chconn that represent, respectively, a server connection and a channel connection