The problem with doing it down at the socket level is that you suddenly need to be a protocol expert, when all you want to do is a few telnet commands.
I wrote a driver on top of de.mud.jta, but it leaves threads open, and I don't know where, and how to fix those. Seems to me that there must be something better out there than coding at the protocol level or this old JTA stuff.