English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

I want to write a program in c++ which will telnet to a daemon on a particular port ,and enter commands.

Please help me , I am struck with this..

2006-07-21 23:53:38 · 4 answers · asked by ridha406 1 in Computers & Internet Programming & Design

here is some more details.. java or c++ is fine

there is a daemon which listens at port 8790 @local machine where we have installed the application
The following are the steps--First telnet using command prompt as shown

telnet 127.0.0.1 8790 //This gives a prompt srvrmgr> where we enter commands
srvrmgr>setdbgpara
Select level //it asks for level
1 for fILE
2 for table
3. for other
1 //Suppose we enter 1,it will display mesg Setting Suceeded
Setting Succeded


The thing is that we need to write a java program, which will does some job after enabling the above parameter,

SO we need to enable it using java program & then perform other functions,

Please help us as we are struck with this

2006-07-25 04:59:38 · update #1

4 answers

http://www.codeproject.com/ has some code for telnet. I just used it a couple weeks ago for a project and it works great.

2006-07-22 03:18:19 · answer #1 · answered by justme 7 · 1 0

there's some a thank you to try this. i'm assuming you have already written this gadget itself and are searching for a fashion out of the loop. I did something like this in intense college, and did an elementary instant asking if the consumer had to proceed, sure became 0, no became a million. If x = 0 then proceed, if x = a million then go out. Edit: As for the above poster, some languages do in comparison to using a character different than an integer if the variable is initialized as an integer. And using a char extremely of a int works in some languages, yet except there's a 'toint' function obtainable it may reason issues.

2016-12-14 11:42:09 · answer #2 · answered by ? 4 · 0 0

I'm not an expert in C++ ... but try to visit http://www.codeproject.com ... you might find some help

2006-07-21 23:57:09 · answer #3 · answered by Luay14 6 · 0 0

Hacking is illegal....

2006-07-22 03:21:30 · answer #4 · answered by EC2talk2 2 · 0 0

fedest.com, questions and answers