salve a tutti..
sto da 1 pò di tepo studioando le socket..
e compilando con dev c++ il seguente codece mi da degli errori..
[code]
#include "Socket.h"
#include <iostream>
using namespace std;
int main() {
try {
SocketClient s("www.google.com", 80);
s.SendLine("GET / HTTP/1.0");
s.SendLine("Host: www.google.com");
s.SendLine("");
while (1) {
string l = s.ReceiveLine();
if (l.empty()) break;
cout << l;
cout.flush();
}
}
catch (const char* s) {
cerr << s << endl;
}
catch (std::string s) {
cerr << s << endl;
}
catch (...) {
cerr << "unhandled exception\n";
}
return 0;
}
[code]
gli errori riscontrati sono questi nello screanshot..
![]()
ricordo ke ho linkato il file libws2_32.a..
versione devc++ 4.9.8.0
grazie 1000