henrywood Contributor

Joined: 21 Sep 2004 Posts: 66 Location: Copenhagen, Denmark
|
Posted: Tue May 23, 2006 1:58 pm Post subject: VDSIPP: TELNET ECHO ON / OFF ??? |
|
|
Hi !
I am trying to write a server app using VDSIPP that can tell the terminal client to turn off and on echo (ie. control if anything is output to console)
I am going to use this for authentification purposes, turning ECHO OFF when requesting a password and turning it back ON afterwards.
I am able to turn echo off but I cannot turn it back on ? According to RFC 857 it is a feature of the TELNET protocol ??
Code:
| Code: |
%A = @internet(tcp-server,userid,1)
%B = @internet(tcp-server,message,1)
%C = @internet(tcp-server,userip,1)
%%ECHO_OFF = @chr(255)@chr(254)@chr(1)
%%ECHO_ON = @chr(255)@chr(253)@chr(1)
if @equal(%B,off)
INTERNET TCP-SERVER,SENDUSER,1,%A,%%ECHO_OFF@cr()
goto evloop
end
if @equal(%B,on)
INTERNET TCP-SERVER,SENDUSER,1,%A,%%ECHO_ON%B
goto evloop
end
|
Any suggestions ?
Henrik |
|