4 ms·
Write a chat server capable of handling concurrent clients, and write a front-end client in Ruby. You'll need a thread-safe FIFO datastructure, such as a queue
by leksak 10y ago
Write a chat server capable of handling concurrent clients, and write a front-end client in Ruby.
You'll need a thread-safe FIFO datastructure, such as a queue, handle sockets, define a communications protocol (or borrow one, I'd recommend IRC).
Bonus: This will also teach you more about the Internet protocol suite (https://en.wikipedia.org/wiki/Internet_protocol_suite https://en.wikipedia.org/wiki/Internet_protocol_suite), particularly the Application/Transport layer.
Side-note: Project Euler and cryptopals problems are not well-suited for C, use the right tool for the job.