473,768 Members | 6,435 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

c++ and telnet

Hello

i was wondering if anyone has any examples of access and sending info
to a telnet server (with and without login)

I was hoping to find some examples in unmanged code, but managed would
do. I want to write my own class to do this, but would like a step by
step guide showing how to start off and then add my own custom
functions

I wanted to use the free download of visual c++ express 2005

I def do NOT want to use c#

I know of a opensource activex control that would do this, but i found
it cludgy and also there is the problem of always having the end user
needing to install the activex control as i cant embed it into the
program

I would use the managed gui interface for the program.

Can anyone advise please
Apr 19 '06 #1
2 1871
> i was wondering if anyone has any examples of access and sending info
to a telnet server (with and without login)

I was hoping to find some examples in unmanged code, but managed would
do. I want to write my own class to do this, but would like a step by
step guide showing how to start off and then add my own custom
functions

I wanted to use the free download of visual c++ express 2005

I def do NOT want to use c#

I know of a opensource activex control that would do this, but i found
it cludgy and also there is the problem of always having the end user
needing to install the activex control as i cant embed it into the
program

I would use the managed gui interface for the program.


Search for 'telnet' on www.codeproject.com

http://www.codeproject.com/info/sear...ed=19+Apr+2006

you will find a reasonable amount of articles with source code on telnet
server and clients. If you want to use VC2005 express you will also have to
install the latest platform SDK since it is not included by default.

--

Kind regards,
Bruno.
br************* *********@hotma il.com
Remove only "_nos_pam"

Apr 19 '06 #2

thanks
On Tue, 18 Apr 2006 23:55:02 -0700, Bruno van Dooren
<br************ **********@hotm ail.com> wrote:
i was wondering if anyone has any examples of access and sending info
to a telnet server (with and without login)

I was hoping to find some examples in unmanged code, but managed would
do. I want to write my own class to do this, but would like a step by
step guide showing how to start off and then add my own custom
functions

I wanted to use the free download of visual c++ express 2005

I def do NOT want to use c#

I know of a opensource activex control that would do this, but i found
it cludgy and also there is the problem of always having the end user
needing to install the activex control as i cant embed it into the
program

I would use the managed gui interface for the program.


Search for 'telnet' on www.codeproject.com

http://www.codeproject.com/info/sear...ed=19+Apr+2006

you will find a reasonable amount of articles with source code on telnet
server and clients. If you want to use VC2005 express you will also have to
install the latest platform SDK since it is not included by default.


Apr 20 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
50333
by: Dan | last post by:
I'm writing a simplistic telnet client in VB6 and I've run into a small snag. The program has a textbox to write in the string to be sent using ..SendData and has another textbox that displays what that server sends. When I first connect to the server (in this case, my university's smtp server), I get a response that the server acknowledges my connection. When I type something into the textbox and send it, however, I get no response...
3
8664
by: Yannick Turgeon | last post by:
Hello all, I'm currently trying to pass commands to a telnet session and get the texte generated (stdin + stdout) by the session. The problem I get is that the Telnet.read_until() function seems to freeze after a couple of command. I did a simplify script that reproduce the problem each time (I'm using 2.3.4 on W2K):
4
11190
by: Donnal Walter | last post by:
On Windows XP I am able to connect to a remote telnet server from the command prompt using: telnet nnn.nnn.nnn.nnn 23 where nnn.nnn.nnn.nnn is the IP address of the host. But using telnetlib, this code returns the traceback that follows: import telnetlib host = 'nnn.nnn.nnn.nnn'
2
8279
by: john brown | last post by:
I'm telnetting into a router. Apart from the fact I can't seem to view the output when iniciating the session, I can't match one of the expressions using Net::Telnet. I can telnet into the router manually without a problem. I'm running a sniffer at the same time just to see what's happening behind the scenes. The computer does an ARP request looking for the router's direction, but that seems to be it. I don't think any data actually...
0
7273
by: CJ | last post by:
Can someone look at the code below and tell me whats going on? Here is the problem. I can successfully telnet one of our routers and successfully put in a command in the while statement, but when the loop goes around a second time, it gives me: "pattern match timed-out at c:\filename.pl line 21" It can't get past the waitfor statement for a prompt the 2nd go around in the loop.
2
4593
by: eight02645999 | last post by:
hi i am using a telnet session to simulate an authentication mechanism USER = "user" PASSWORD = "password" try: telnet = telnetlib.Telnet(HOST) telnet.set_debuglevel(5) telnet.read_until("login: ") telnet.write(USER + "\n") telnet.read_until("Password: ")
2
5185
by: thilandeneth | last post by:
i need to do telnet via a web server please give me a idia to initiate the project following requirements are needed 1 Create web based custom telnet client to communicate with remote destinations. must provide login security before make communication 2 telnet communication should not be a direct 1 to 1 communication and that must be as follows Web telnet client -à Web server (telnet client) -à destination (see figure 01)
1
8540
by: perlxyo999 | last post by:
Hi , I have a problem doing manipulation (like split) in string comeing back from telnet commnd : $HOST = 'xxx'; $USER = 'yyy20'; $PASS = 'yyy-pass'; #$telnet = Net::Telnet->new($HOST); #$telnet->login($USER,$PASS); $telnet = new Net::Telnet (Timeout => 30, Prompt => '/ $/');
6
5514
by: sherrygomindes | last post by:
Hi I have written a perl script using the Telnet module. I need to remotely login in from one windows XP machine to another XP machine. But i get errors which i can't figure out the reason. Please someone help me its very very urgent. here is my code: #!/usr/bin/perl -w
17
7348
by: ravimath | last post by:
Dear all, I have written following script to loin to router bu it is showing error. #!c:\Perl\bin; use strict; use warnings; my $hostname = 'REMOVED FOR YOUR PROTECTION'; my $password = 'REMOVED FOR YOUR PROTECTION';
0
9407
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10175
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
9961
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
7384
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6656
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5283
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5425
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3932
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2808
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.