Thread: What may be wrong with connection?

  1. #1
    Registered User
    Join Date
    Oct 2002

    What may be wrong with connection?

    Hi, Breekan again. I finished my chat program. It will not only log your chats if you want but it can pass screenames you choose as well. There are still a few *minor* bugs but I must ask this:

    Why is it, that even with the correct IP/hostname, there is no connection? Sometimes it can resolve the address and other times it cannot. It bothers me that most of the time it won't find the address/IP/etc. However, running the program twice and connecting to your own IP works (chat with yourself? hah).

    However, if anyone is willing, would they be able to explain why this is? What further must I add to get my program to CONNECT?

  2. #2
    are you using port numbers???
    My Avatar says: "Stay in School"

    Rocco is the Boy!

  3. #3
    Registered User
    Join Date
    Oct 2002

    const int PORT = 3163;

  4. #4
    Guest Sebastiani's Avatar
    Join Date
    Aug 2001
    Waterloo, Texas
    What are you passing to FindHost? Leave out the "http:\\". And more specifically, describe exactly what is happening. When does it find the host, and when not?
    #include <cmath>
    #include <complex>
    bool euler_flip(bool value)
        return std::pow
            std::complex<float>(0, 1) 
            * std::complex<float>(std::atan(1.0)
            *(1 << (value + 2)))
        ).real() < 0;

  5. #5
    Registered User
    Join Date
    Oct 2002
    I don't know...

    I sent you an Email with a link to my program if you would like to see how it works

  6. #6
    Registered User
    Join Date
    Oct 2002
    Did you get my Email?

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. OLEDB Connection String to Excel
    By gozlan in forum C# Programming
    Replies: 4
    Last Post: 07-06-2003, 01:42 PM
  2. Determining status of a network connection?
    By Cat in forum Windows Programming
    Replies: 0
    Last Post: 06-04-2003, 05:30 PM
  3. broadband connection problem
    By Shadow in forum Tech Board
    Replies: 9
    Last Post: 03-28-2003, 05:27 PM
  4. God
    By datainjector in forum A Brief History of
    Replies: 746
    Last Post: 12-22-2002, 12:01 PM