Changeset 24231


Ignore:
Timestamp:
10/12/13 14:10:04 (9 years ago)
Author:
nit
Message:

[titan] tithek optimize

File:
1 edited

Legend:

Unmodified
Added
Removed
  • titan/plugins/tithek/tithek.h

    r24153 r24231  
    171171                cmd = ostrcat(cmd, "so", 1, 0);
    172172               
    173                 //if(system(cmd) != 0)
    174173                for(i = 0; i < 3; i++)
    175174                {
    176175                        free(tmp); tmp = NULL;
    177                         tmp = gethttp(cmd, "/", 80, NULL, NULL, 5000, NULL, 0);
     176                        tmp = gethttpreal(cmd, "/", 80, NULL, NULL, NULL, 0, NULL, NULL, 5000, 2);
    178177                        if(tmp != NULL) break;
    179178                }
     
    191190                cmd = ostrcat(cmd, "to", 1, 0);
    192191               
    193                 //if(system(cmd) != 0)
    194192                for(i = 0; i < 3; i++)
    195193                {
    196194                        free(tmp); tmp = NULL;
    197                         tmp = gethttp(cmd, "/", 80, NULL, NULL, 5000, NULL, 0);
     195                        tmp = gethttpreal(cmd, "/", 80, NULL, NULL, NULL, 0, NULL, NULL, 5000, 2);
    198196                        if(tmp != NULL) break;
    199197                }
     
    211209                cmd = ostrcat(cmd, "se", 1, 0);
    212210               
    213                 //if(system(cmd) != 0)
    214211                for(i = 0; i < 3; i++)
    215212                {
    216213                        free(tmp); tmp = NULL;
    217                         tmp = gethttp(cmd, "/", 80, NULL, NULL, 5000, NULL, 0);
     214                        tmp = gethttpreal(cmd, "/", 80, NULL, NULL, NULL, 0, NULL, NULL, 5000, 2);
    218215                        if(tmp != NULL) break;
    219216                }
     
    230227                cmd = ostrcat(cmd, "to", 1, 0);
    231228               
    232                 //if(system(cmd) != 0)
    233229                for(i = 0; i < 3; i++)
    234230                {
    235231                        free(tmp); tmp = NULL;
    236                         tmp = gethttp(cmd, "/", 80, NULL, NULL, 5000, NULL, 0);
     232                        tmp = gethttpreal(cmd, "/", 80, NULL, NULL, NULL, 0, NULL, NULL, 5000, 2);
    237233                        if(tmp != NULL) break;
    238234                }
Note: See TracChangeset for help on using the changeset viewer.