1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

C++ socket programming

Discussion in 'C++' started by DynamitMsk, Dec 31, 2006.

  1. DynamitMsk

    DynamitMsk New Member

    Joined:
    Dec 31, 2006
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    Hello,

    I'm working on a stock trading assignment. I have developed the algorithm for trading, and now I need a little help on getting the data from a server.

    There's a server that replies to the following request:
    servername stockcost <stockname>

    and I assume I can use it like:

    int currentCost = servername stockcost <stockname>;

    but I do need some way to connect to the server, so there should be some CPP libraries. Anyone can point me to places where I can get more info on working with a remote machine in CPP? thank you!!!
     
  2. interval

    interval New Member

    Joined:
    Aug 20, 2008
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    I know this post is over a year old but I wanted to add to this for anyone else looking for help on sockets.

    Using sockets isn't really a c++ (or a c) problem, so asking for a c++ "library" for this is a little off base. What you're asking for is how to access the c runtime library APIs to use sockets. Since you asked this in a c++ forum here is a socket class wrapper:

    http://www.pcs.cnu.edu/~dgame/sockets/socketsC++/Socket.cpp
     
  3. Lutera

    Lutera New Member

    Joined:
    Jan 22, 2011
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    0
    thts gud can any 1 help me 4 socket progming beginng?????????
     

Share This Page