if ( bShowTCP ) { printf("\n -------------------- // -------------------- "); printf("\n TCP Header:"); int *addressValue = new int(); char *address = LIP; inet_pton(AF_INET, address, addressValue); if (ip_header->source_ip == *addressValue) { printf("\n Source IP: %s", "0.0.0.0"); printf("\n Destination IP: %s", ipDest); } else { printf("\n Source IP: %s", ipSrc); printf("\n Destination IP: %s", ipDest); } if (mysql_real_connect(conn,"urlock.db.5513143.hostedresource.com","VendorCheck","Reader1234","urlock",0,NULL,0) !=0) { (mysql_query(conn,"SELECT COUNT(*) FROM tblURL")); my_ulonglong i = 0; res_set = mysql_store_result(conn); my_ulonglong numrows = mysql_num_rows(res_set); LEGIT = mysql_fetch_row(res_set); if (atoi(LEGIT[i]) == 1) { printf("PASS: %s\n",LEGIT[i]); } else { printf("FAIL: %s\n",LEGIT[i]); } else { printf("\n Connect Failed!"); system("\n PAUSE"); } return 0; } } break;
Edit -> Advanced -> Format Selection
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)