Mercurial > hg > nnchat
comparison nnchat.c @ 329:c0988ab45afd
#ifdef out the policy probe.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Tue, 14 Jun 2011 10:45:40 +0300 |
parents | a8bda904846c |
children | 8e509d6546d3 |
comparison
equal
deleted
inserted
replaced
328:a8bda904846c | 329:c0988ab45afd |
---|---|
1449 errorMsg("Could not resolve hostname: %s.\n", strerror(h_errno)); | 1449 errorMsg("Could not resolve hostname: %s.\n", strerror(h_errno)); |
1450 goto err_exit; | 1450 goto err_exit; |
1451 } | 1451 } |
1452 printMsg(currWin, "True hostname: %s\n", tmpHost->h_name); | 1452 printMsg(currWin, "True hostname: %s\n", tmpHost->h_name); |
1453 | 1453 |
1454 #ifdef FINAL_BUILD | |
1454 /* To emulate the official client, we first make a request for | 1455 /* To emulate the official client, we first make a request for |
1455 * policy file, even though we don't use it for anything... | 1456 * policy file, even though we don't use it for anything... |
1456 */ | 1457 */ |
1457 conn = nn_conn_open((struct in_addr *) tmpHost->h_addr, 843); | 1458 conn = nn_conn_open((struct in_addr *) tmpHost->h_addr, 843); |
1458 if (!nn_conn_check(conn)) { | 1459 if (!nn_conn_check(conn)) { |
1471 } else { | 1472 } else { |
1472 printMsg(currWin, "Could not get policy probe.\n"); | 1473 printMsg(currWin, "Could not get policy probe.\n"); |
1473 } | 1474 } |
1474 } | 1475 } |
1475 nn_conn_close(conn); | 1476 nn_conn_close(conn); |
1477 #endif | |
1476 | 1478 |
1477 /* Okay, now do the proper connection ... */ | 1479 /* Okay, now do the proper connection ... */ |
1478 conn = nn_conn_open((struct in_addr *) tmpHost->h_addr, optPort); | 1480 conn = nn_conn_open((struct in_addr *) tmpHost->h_addr, optPort); |
1479 if (!nn_conn_check(conn)) { | 1481 if (!nn_conn_check(conn)) { |
1480 errorMsg("Main connection setup failed!\n"); | 1482 errorMsg("Main connection setup failed!\n"); |