Telnet is secure enough in the environment it runs in. I wasn't asking for code to be written, rather a code snippet of something already done. Handling an unformatted data stream coming in on a socket surely has been done before...........thanks for the lecture.