Now it compiles on Cygwin

This commit is contained in:
mpc
2004-06-22 22:48:32 +00:00
committed by zzz
parent 7ca35452eb
commit eb5dd2ff2e
11 changed files with 36 additions and 30 deletions

View File

@@ -46,12 +46,16 @@ int main(int argc, char* argv[])
LINFO << "Enclave DHT - Built on " << __DATE__ << ' ' << __TIME__ << '\n';
try {
sam = new Sam("eldritch", 7656, argv[1], 0);
sam = new Sam("localhost", 7656, argv[1], 0);
} catch (const Sam_error& x) {
LERROR << "SAM error: " << x.what() << '\n';
if (x.code() == SAM_SOCKET_ERROR)
cerr << "SAM error: " << x.what() << '\n';
if (x.code() == SAM_SOCKET_ERROR) {
LERROR << "Check whether you have specified the correct SAM host " \
"and port number\n";
"and port number, and that\nI2P is running.\n";
cerr << "Check whether you have specified the correct SAM host " \
"and port number, and that\nI2P is running.\n";
}
return 1;
}
sam->naming_lookup();