Basically like an HHTP server, as you can see.Ī different thing is whether you should use LNet.
Note, though, that while telnet was extensively used to move phone BBSs to the internet, that was quite a lot of years ago, and today it's usually preferred to use either a similar but more secure protocol (like SSH) or directly through HTTP(S), since the basic BBS interaction is very similar to it: send command->await response, and message/file uploading can be easily implemented with PUT or POST and form-data.Īs for how a telnet server could be implemented, it's relatively easy: the network layer awaits clients on port 23 (IIRC) and redirects commands for either internal handling or to external programs using CGI-like techniques. A good place to start is the wikipedia article, which will lead you to the corresponding RFCs. Mark's example, though, is very basic (just a proof-of-concept, IMHO) so you have quite a lot of work to do, more so if you want to deal correctly with the security implications. I'm not Mark, obviously, but I don't see why not.