void checkGSUCheck( char *id ) { int i; char gname[256]; if(!id[0]) return; memset( gname, 0, sizeof( gname) ); if( LockNode_getGname( (getHash(id) & 0xff), id, gname) <= 0 ){ log("ÎÞ·¨´ÓÓÎÏ·ÖÐÕÒµ½Õ˺Å:%x/%s !!\n", getHash( id), id); return; } log("\n"); for(i=0; i < MAXCONNECTION; i++ ){ if( gs[i].name[0] && strcmp( gs[i].name , gname )==0){ log("·¢ËͽâËø¼ì²é[%s] µ½ %d.%x/%s ·þÎñÆ÷:%d !!\n", id, i, getHash( id), gname, gs[i].fd); saacproto_ACUCheck_send( gs[i].fd , id ); return; } } // log("Can't find gname:%s sending err !!\n", gname); int ret = -1; if( !isLocked( id) ) { log( "ɾ³ýÄÚ´æÐÅÏ¢: Óû§:%x/%s ûÓÐËø¶¨!!\n", getHash(id), id); } if( DeleteMemLock( getHash(id) & 0xff, id, &ret) ) { } else { log( "²»ÄܽâËø %x:%s !\n", getHash(id), id); } }
void checkGSUCheck( char *id ) { int i; char gname[256]; if(!id[0]) return; memset( gname, 0, sizeof( gname) ); if( LockNode_getGname( (getHash(id) & 0xff), id, gname) <= 0 ){ log("������Ϸ���ҵ��˺�:%x/%s !!\n", getHash( id), id); return; } log("\n"); for(i=0; i < MAXCONNECTION; i++ ){ if( gs[i].name[0] && strcmp( gs[i].name , gname )==0){ log("���ͽ������[%s] �� %d.%x/%s ������:%d !!\n", id, i, getHash( id), gname, gs[i].fd); saacproto_ACUCheck_send( gs[i].fd , id ); return; } } // log("Can't find gname:%s sending err !!\n", gname); int ret = -1; if( !isLocked( id) ) { log( "ɾ���ڴ���Ϣ: �û�:%x/%s û������!!\n", getHash(id), id); } if( DeleteMemLock( getHash(id) & 0xff, id, &ret) ) { } else { log( "���ܽ��� %x:%s !\n", getHash(id), id); } }