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!!!
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