comparison nnchat.c @ 147:77c35cdd5ce3

Remove obsolete #if 1
author Matti Hamalainen <ccr@tnsp.org>
date Tue, 02 Nov 2010 22:49:44 +0200
parents d2e3a95c74df
children 9da39d090ef1
comparison
equal deleted inserted replaced
146:c6c3825376c9 147:77c35cdd5ce3
900 hstrerror(h_errno)); 900 hstrerror(h_errno));
901 goto err_exit; 901 goto err_exit;
902 } 902 }
903 THMSG(2, "True hostname: %s\n", tmpHost->h_name); 903 THMSG(2, "True hostname: %s\n", tmpHost->h_name);
904 904
905 #if 1
906 /* To emulate the official client, we first make a request for 905 /* To emulate the official client, we first make a request for
907 * policy file, even though we don't use it for anything... 906 * policy file, even though we don't use it for anything...
908 */ 907 */
909 if ((tmpSocket = nn_open_connection((struct in_addr *) tmpHost->h_addr, 843)) < 0) { 908 if ((tmpSocket = nn_open_connection((struct in_addr *) tmpHost->h_addr, 843)) < 0) {
910 THERR("Policy file request connection setup failed!\n"); 909 THERR("Policy file request connection setup failed!\n");
921 gotBuf = recv(tmpSocket, tmpBuf, sizeof(tmpBuf), 0); 920 gotBuf = recv(tmpSocket, tmpBuf, sizeof(tmpBuf), 0);
922 tmpBuf[gotBuf-1] = 0; 921 tmpBuf[gotBuf-1] = 0;
923 THMSG(2, "Probe got: %s\n", tmpBuf); 922 THMSG(2, "Probe got: %s\n", tmpBuf);
924 nn_close_connection(tmpSocket); 923 nn_close_connection(tmpSocket);
925 } 924 }
926 #endif
927 925
928 /* Okay, now do the proper connection ... */ 926 /* Okay, now do the proper connection ... */
929 if ((tmpSocket = nn_open_connection((struct in_addr *) tmpHost->h_addr, optPort)) < 0) { 927 if ((tmpSocket = nn_open_connection((struct in_addr *) tmpHost->h_addr, optPort)) < 0) {
930 THERR("Main connection setup failed!\n"); 928 THERR("Main connection setup failed!\n");
931 goto err_exit; 929 goto err_exit;