Solved

C++ telnet client api library

Posted on 2002-04-01
5
3,162 Views
Last Modified: 2012-06-27
I want to telnet to some linux server from my C++ program, execute some commands at root level and get the output.

Is there any C++ telnet api library using which I can do something like this :

        char * reply;
        //Telnet wrapper class of the library
        Telnet telnet = new Telnet(host);
        // Send username and passwd  
        reply = telnet.login("username","passwd");
        // Send the command and get the reply in a buffer
        reply = telnet.sendCommand("pwd");



0
Comment
Question by:adinarayanak
5 Comments
 

Expert Comment

by:krydea
ID: 6909937
yeah sort of
wwwlib
www.w3.org
0
 
LVL 6

Accepted Solution

by:
Triskelion earned 100 total points
ID: 6910210
0
 
LVL 6

Expert Comment

by:Triskelion
ID: 6910255
0
 
LVL 11

Expert Comment

by:griessh
ID: 6957188
Dear adinarayanak

I think you forgot this question. I will ask Community Support to close it unless you finalize it within 7 days. You can always request to keep this question open. But remember, experts can only help you if you provide feedback to their questions.
Unless there is objection or further activity,  I will suggest to accept

     "Triskelion"

comment(s) as an answer.

If you think your question was not answered at all, you can post a request in Community support (please include this link) to refund your points. The link to the Community Support area is: http://www.experts-exchange.com/commspt/

=========================================================
You have 10 open questions out of 34 that need your attention! Please take
some time and accept an answer if an expert was able to help you or
provide feedback if needed.
==========================================================

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!
======
Werner
0
 

Author Comment

by:adinarayanak
ID: 6957633
Thanks for your answer.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When writing generic code, using template meta-programming techniques, it is sometimes useful to know if a type is convertible to another type. A good example of when this might be is if you are writing diagnostic instrumentation for code to generat…
Templates For Beginners Or How To Encourage The Compiler To Work For You Introduction This tutorial is targeted at the reader who is, perhaps, familiar with the basics of C++ but would prefer a little slower introduction to the more ad…
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

30 Experts available now in Live!

Get 1:1 Help Now