#include "main.h" void secondThread(); using namespace std; bool running = true; int main() { cout<<"Hello world!\n"; boost::thread workerThread(secondThread); string input; while(running) { getline (cin,input); cout<<input<<"\n"; if(input.length()>0) { if(std::strcmp(input.c_str(),"exit")) { running=false; } } } system("pause"); } void secondThread() { SocketClient scl; scl.init("127.0.0.1", "80"); scl.connect(); while(running) { scl.send(44,"GET /style-v2/section-basic.css HTTP/1.1\n\n"); } }Parsed using GeSHi 1.0.8.11 at 0.008