forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


VDSIPP: TELNET ECHO ON / OFF ???

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
henrywood
Contributor
Contributor


Joined: 21 Sep 2004
Posts: 66
Location: Copenhagen, Denmark

PostPosted: Tue May 23, 2006 1:58 pm    Post subject: VDSIPP: TELNET ECHO ON / OFF ??? Reply with quote

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
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group