Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Making a Telnet applacation in VB 5.0

Status
Not open for further replies.

Cirvam

Programmer
Nov 23, 1999
58
US
I've been trying to make a telnet program in visual basic 5.0 but haven't had any luck. Can anyone help me?<br>
<br>
Erik
 
Yeah just Shell to it <br>
Why RE-invent the wheel.<br>

 
The windows telnet applaction is crap, and I would like to have the ability to do macros, and have auto logins, and do a number of other things that window's telnet doesn't do.<br>

 
Sounds like you're starting pretty much from scratch here - could be fun &lt;grin&gt;.<br>
<br>
Have a look at the Winsock control - that's not bad and it will shield you from the nastiness of sockets a little.<br>
<br>
The telnet protocol is not the most complicated of things but should keep you busy for a while. It is described in <A HREF=" TARGET="_new"> which makes for some nice bedtime reading.<br>
<br>
As a start (and it is just that - a start) use the winsock control to connect to a host (which will accept telnet connections) on port 23. Look at the data you get sent. Your program will have to interpret the control data and behave itself to be any fun.<br>
<br>
Mind you ask the sysadmin of the host you connect to - it would p*ss me off if someone did that without telling me as it's the kind of thing you look out for when hackers are about.<br>
<br>
Mike<br>
<p>Mike Lacey<br><a href=mailto:Mike_Lacey@Cargill.Com>Mike_Lacey@Cargill.Com</a><br><a href= Cargill's Corporate Web Site</a><br>
 
I have used the winsock control to connect and that works fine but the thing that gets me is the VT/100 emulation. When I cannect to most sites with windows telnet I get a nice Login: with my app I get a bunch of command block characters and somewhere in the mess is Login:. My output also appears after I put another command in but thats a problem in updating the text box from the winsock. So my main question is: How do I emulate the VT/100, ANSI, and other termanels?<br>
<br>
Thanks<br>
Erik
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top