Thread: Internet Programming for DOS Console

  1. #1
    Registered User
    Join Date
    Aug 2004
    Posts
    1

    Internet Programming for DOS Console

    I need to add internet functionality to my DOS Console program for a project i'm doing in class. I need to connect to another client (computer) and be able to chat with the client through DOS Console. I'm pretty sure I can the chat creation part down but I'm not too sure where to begin with the connecting to another client through the consoles part. Is Windows Internet Programming different from Console Internet programming or no cause I don't know the Windows API too well.

    HELP! Thanks in advance!

  2. #2
    Guest Sebastiani's Avatar
    Join Date
    Aug 2001
    Location
    Waterloo, Texas
    Posts
    5,708
    do a google on 'winsock tutorials' or the like...
    Code:
    #include <cmath>
    #include <complex>
    bool euler_flip(bool value)
    {
        return std::pow
        (
            std::complex<float>(std::exp(1.0)), 
            std::complex<float>(0, 1) 
            * std::complex<float>(std::atan(1.0)
            *(1 << (value + 2)))
        ).real() < 0;
    }

  3. #3
    Anti-Poster
    Join Date
    Feb 2002
    Posts
    1,401
    Or just check out Beej's Guide.
    If I did your homework for you, then you might pass your class without learning how to write a program like this. Then you might graduate and get your degree without learning how to write a program like this. You might become a professional programmer without knowing how to write a program like this. Someday you might work on a project with me without knowing how to write a program like this. Then I would have to do you serious bodily harm. - Jack Klein

  4. #4
    Teenage Mutant Ninja Nerd MMD_Lynx's Avatar
    Join Date
    Aug 2004
    Posts
    65
    phew-whack (sound of it half going over my head, half hitting me in the face)
    so...much...to take in...brain can't take it. unfortunately that's probably the easiest to understand.
    Stupid people are useful. You can make them do all the mindless tasks you are too lazy to do yourself.

    Sphynx cats are just bald and wrinkly, like old people, and we don't reject them.

  5. #5
    hacker in training AdamLAN's Avatar
    Join Date
    Sep 2004
    Posts
    56
    Whats a DOS console thingy???

    email at: [email protected]

  6. #6
    Registered User
    Join Date
    Aug 2004
    Location
    San Diego, CA
    Posts
    313
    Start > Run > command.com

    There ya go.

  7. #7
    or if your windows 2k/xp/xp pro/2k3

    Start > Run > cmd



    EDIT: lol i didnt even read, i just saw his post so i was like
    ill just jump in lol.
    Last edited by JarJarBinks; 09-26-2004 at 07:52 PM.

  8. #8
    Carnivore ('-'v) Hunter2's Avatar
    Join Date
    May 2002
    Posts
    2,879
    Quote Originally Posted by AdamLAN
    In your user options, turn email notification on and you will receive an email whenever someone else posts in a thread you've posted in. Otherwise, ask them to PM you rather than email.

    Start > Run > command.com

    There ya go.
    He said "add functionality" to his console program, not run from console.

    KoolFriend:
    Winsock will work fine in both a console program and a windowed program, as long as you don't try using WSAAsyncSelect(), because you don't have a message loop in a console. If you aren't familiar with winsock yet, you can read Beej's tutorial (link posted above).
    Just Google It. √

    (\ /)
    ( . .)
    c(")(") This is bunny. Copy and paste bunny into your signature to help him gain world domination.

  9. #9
    Registered User
    Join Date
    Aug 2004
    Location
    San Diego, CA
    Posts
    313
    Quote Originally Posted by Hunter2
    He said "add functionality" to his console program, not run from console.
    And someone asked what the DOS console was. I answered.

  10. #10
    Carnivore ('-'v) Hunter2's Avatar
    Join Date
    May 2002
    Posts
    2,879
    Oh, my bad. I just saw the "Please email at" and ignored the rest of the post
    Just Google It. √

    (\ /)
    ( . .)
    c(")(") This is bunny. Copy and paste bunny into your signature to help him gain world domination.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Told ya so...
    By Cheeze-It in forum A Brief History of Cprogramming.com
    Replies: 58
    Last Post: 09-12-2007, 08:12 PM
  2. Full Screen Console
    By St0rmTroop3er in forum C++ Programming
    Replies: 1
    Last Post: 09-26-2005, 09:59 PM
  3. Console Functions Help
    By Artist_of_dream in forum C++ Programming
    Replies: 9
    Last Post: 12-04-2004, 03:44 AM
  4. Internet Problems
    By SirCrono6 in forum Tech Board
    Replies: 3
    Last Post: 04-26-2004, 09:47 PM
  5. Just one Question?
    By Irish-Slasher in forum C++ Programming
    Replies: 6
    Last Post: 02-12-2002, 10:19 AM