• Bazsalanszky@lemmy.toldi.eu
    link
    fedilink
    arrow-up
    1
    ·
    1 year ago

    This reminds me of one of my older projects. I wanted to learn more about network communications, so I started working on a simple P2P chat app. It wasn’t anything fancy, but I really enjoyed working on it. One challenge I faced was that, at the time, I didn’t know how to listen for user input while handling network communication simultaneously. So, after I had managed to get multiple TCP sockets working on one thread, I thought, why not open another socket for HTTP communication? That way, I could incorporate a fancy web UI instead of just a CLI interface.

    So, I wrote a simple HTTP server, which, in hindsight, might not have been necessary.