Anyone know of a telnet library? I want to create a telnet interface for my server (which in turn is for a game) but would rather not code my own if I can avoid it

Right now I'm weeding through the 150k hits on google and its not looking promising.