A BIG problemo

Hi

I have tryed to make a program that connect to

the server www.omnics.co.jp and then login as anonymous.


#include

#include

#include

#include

const char *user="user anonymous";

const char *super="pass -anonymous@";

void main()

{

clrscr();

cout<<"***Press a key to connect to the system***";<br>
getch();

system("telnet www.omnics.co.jp 21");

sleep(7);

system(user);

system(super);

}


Can someone help me correct this code!!!

I have Turbo C++ 3.0 for DOS.


(Excuse my english)


Greetings: David


Comments

  • Hi, I think your problem is more complicated than you think.


    If you use the operation

    system("telnet www.omnics.co.jp 21");

    your program still waits until the telnet program

    has been finished.




    1. Try to get a C/C++ compiler for windows.

    2. Create a thread where you open your telnet operation.

    3. Add to the thread the Keyboard commands to

    login into your telnet session.


    This is the way i would try to solve it.

    I don't know if it works, but i hope

    it would be helpfull.


    greetings

    SCIP








  • I have now buyed Borland C++ 3.0.

    Where could i get a good book or manual.

    I would really like to learn programming in

    Windows...


    Best wishes: David




Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories