Thread: How to do port listening in C++?

  1. #1
    Registered User
    Join Date
    Jun 2006
    Posts
    1

    How to do port listening in C++?

    I am a newbie at c++ but need to pick it up in a hurry for my project.

    I need to develop an application that listens to an port (80) for incoming requests, takes a string from the request perform a function and return a result.

    How do i do the port listening part? Maybe a simple sample code as well?

    Thanks in advance.
    ck

  2. #2
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    28,413
    Quote Originally Posted by Bjarne Stroustrup (2000-10-14)
    I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.
    Look up a C++ Reference and learn How To Ask Questions The Smart Way

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. FTP program
    By jakemott in forum Linux Programming
    Replies: 14
    Last Post: 10-06-2008, 01:58 PM
  2. brace-enclosed error
    By jdc18 in forum C++ Programming
    Replies: 53
    Last Post: 05-03-2007, 05:49 PM
  3. Com Port Listening
    By W35 in forum C++ Programming
    Replies: 2
    Last Post: 07-18-2006, 12:39 PM
  4. port listening
    By winterflood_j in forum Windows Programming
    Replies: 6
    Last Post: 12-26-2003, 01:38 PM
  5. Replies: 1
    Last Post: 10-03-2002, 09:52 AM