iTranslated by AI

The content below is an AI-generated translation. This is an experimental feature, and may contain errors. View original article
🎃

Building an Electronic Public Notice-style Telnet Server in Elixir

に公開

I noticed that a corporation called the "General Incorporated Association for Cyber Technology and Internet Freedom" is attempting to provide electronic public notices via Telnet.

https://twitter.com/dnobori/status/1698619977950212362

I found their reasoning quite convincing, which led me to think: shouldn't I also provide my own site via Telnet? So, I decided to try making a tool for that.

https://github.com/kentaro/text_site

It looks like this when displayed. This is truly what a "text site" should be.

https://twitter.com/kentaro/status/1699359954828992794

Then, for some reason I didn't quite understand, an announcement was made that something called a "Chat Broadcast Function" had been added. What on earth is this?

https://twitter.com/dnobori/status/1699339202104889474

So, I went ahead and added a chat broadcast function as well. The parts below saying "Hello~~~~~~~~~~" and "Yay, is anyone watching????" are exactly that.

https://twitter.com/kentaro/status/1699402048020811894

When other terminals are talking, it shows up like this. Of course, you can also talk back from your side.

This function integrates the logic I previously wrote about in the article "Creating a server in Elixir that broadcasts input from a TCP-connected client to all other clients" into the Telnet server.

All that's left is to deploy this server somewhere.

GitHubで編集を提案

Discussion