system
2
It might be worth taking a look at the Bitlash web server example. It allows both telnet and browser access.
The code is in the examples that ship with bitlash, and online at github here:
Good luck with your project,
-br
Edit: There are telnet-only examples, too, in the distro.