| | |
C++ socket programming
Please support our C++ advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Dec 2006
Posts: 14
Reputation:
Solved Threads: 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!!!
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 don't really know that much about sockets, so I may be wrong. I haven't been able to find any C++ network stream sockets, however there's plenty in C which you can call from your program. If you want to learn socket programming from scratch, start with Beej's Guide To Network Programming.
You may find the low-level coding difficult. If so, you may want to make the procedure easier by using libcurl which isn't as powerful, but it's fine for retrieving HTML and other files from a web server.
Hope this helps
You may find the low-level coding difficult. If so, you may want to make the procedure easier by using libcurl which isn't as powerful, but it's fine for retrieving HTML and other files from a web server.
Hope this helps
"Technological progress is like an axe in the hands of a pathological criminal."
![]() |
Similar Threads
- Socket Programming... (C#)
- About socket programming in php (PHP)
- How to send a double value in socket programming (C)
- Please help me with CSocket programming (C++)
- Socket (C++)
- Socket programming + porting Unix to Win32 (C)
Other Threads in the C++ Forum
- Previous Thread: move up n down
- Next Thread: Best way to learn
| Thread Tools | Search this Thread |
api array based beginner binary bitmap c++ c/c++ calculator char char* class code coding compile compiler console conversion count data database delete deploy developer dll download dynamic dynamiccharacterarray email encryption error file forms fstream function functions game getline givemetehcodez graph gui homeworkhelp homeworkhelper iamthwee ifstream input int integer java lib linker list loop looping loops map math matrix memory multiple news node number numbertoword output parameter pointer problem program programming project proxy python random read recursion recursive reference rpg sorting string strings struct temperature template text text-file tree url variable vector video visual visualstudio win32 windows winsock word wordfrequency wxwidgets






