更新都可以用,但是连续更新就不行
更新成功以后它自动跳转到其他的页面,当我在点击更新时 好像地址带的参数重复了,怎么解决啊?
6 个解决方案
#1
#2
把代码贴上来,具体的出错提示是什么,也说明 一下
#3
我也是菜鸟···帮不了楼主
#4
else{ERRORLOG("refreshReceiveQueue(): receiveQueue node is error ,queue opreate logic is wrong.");
} } else //如果该消息没有超时,那么后面的消息都没有超时 { break; }}}
//TSocketComm功能测试函数,打印对象的全部成员变量到日志文件
void TSocketComm::dump(HOfstream& tOutStream){char l_sBuf4Print[65535];tOutStream.reopen();
sprintf(l_sBuf4Print, "z1 :%d\n", z1);z3;sprintf(l_sBuf4Print, "m_iNrOfClient :%d\n", m_iNrOfClient);
z3;如上, m_iNrOfClient); z3;for (int l_iIterator = 0; l_iIterator < m_iNrOfClient; l_iIterator++)
{sprintf(l_sBuf4Print, "m_clientEntity[%03d].m_IP :%d\n", l_iIterator, z4.m_iIP); z3;
如上, l_iIterator, z4.m_iPort); z3;如上, l_iIterator, z4.m_tLinkStartTime); z3;
如上, l_iIterator, z4.m_pSocket); z3;如上, l_iIterator, z4.m_tState);z3;如上, l_iIterator, z4.m_sItemName);
z3;} .., m_iNrOfClient); z3; .., m_pSocketServer); z3; .., j9); z3;.., k4); z3;.., m_clientIP); z3;
.., j6); z3;.., z2); z3;.., j7); z3;.., m_lastListenTime); z3; .., m_lastRoutineTime); z3; .., k2);
z3; .., k3); z3; .., k1); z3; tOutStream.close();}
//TSocketComm功能测试函数,打印接收队列到日志文件
void TSocketComm::dumpRecQueue(HOfstream& tOutStream){
WRITELOG(tOutStream, "dump receivequeue info: count is " << k1);TRecQueueItem* pItem = k2;
int i = 1;while (NULL != pItem){//打印节点信息if (NULL != pItem->pMsg){
WRITELOG(tOutStream, "------Msg[" << i++ << "] addtime is " << pItem->msgAddTime
<< " ------");pItem->pMsg->dump(tOutStream); }//节点移动nextpItem = pItem->next;}return;}
// TSocketComm功能测试函数,打印发送队列到日志文件
void TSocketComm::dumpSendQueue(HOfstream& tOutStream){int i;
WRITELOG(tOutStream, "dump SendQueue info:");for (i = 0; i < m_iNrOfClient; i++){
if (NULL != y4.m_pSocket) { WRITELOG(tOutStream, "Connection index is " << i + 1
<< " sendqueue info :");y4.m_pSocket->dumpSendQueue(tOutStream);} }
} } else //如果该消息没有超时,那么后面的消息都没有超时 { break; }}}
//TSocketComm功能测试函数,打印对象的全部成员变量到日志文件
void TSocketComm::dump(HOfstream& tOutStream){char l_sBuf4Print[65535];tOutStream.reopen();
sprintf(l_sBuf4Print, "z1 :%d\n", z1);z3;sprintf(l_sBuf4Print, "m_iNrOfClient :%d\n", m_iNrOfClient);
z3;如上, m_iNrOfClient); z3;for (int l_iIterator = 0; l_iIterator < m_iNrOfClient; l_iIterator++)
{sprintf(l_sBuf4Print, "m_clientEntity[%03d].m_IP :%d\n", l_iIterator, z4.m_iIP); z3;
如上, l_iIterator, z4.m_iPort); z3;如上, l_iIterator, z4.m_tLinkStartTime); z3;
如上, l_iIterator, z4.m_pSocket); z3;如上, l_iIterator, z4.m_tState);z3;如上, l_iIterator, z4.m_sItemName);
z3;} .., m_iNrOfClient); z3; .., m_pSocketServer); z3; .., j9); z3;.., k4); z3;.., m_clientIP); z3;
.., j6); z3;.., z2); z3;.., j7); z3;.., m_lastListenTime); z3; .., m_lastRoutineTime); z3; .., k2);
z3; .., k3); z3; .., k1); z3; tOutStream.close();}
//TSocketComm功能测试函数,打印接收队列到日志文件
void TSocketComm::dumpRecQueue(HOfstream& tOutStream){
WRITELOG(tOutStream, "dump receivequeue info: count is " << k1);TRecQueueItem* pItem = k2;
int i = 1;while (NULL != pItem){//打印节点信息if (NULL != pItem->pMsg){
WRITELOG(tOutStream, "------Msg[" << i++ << "] addtime is " << pItem->msgAddTime
<< " ------");pItem->pMsg->dump(tOutStream); }//节点移动nextpItem = pItem->next;}return;}
// TSocketComm功能测试函数,打印发送队列到日志文件
void TSocketComm::dumpSendQueue(HOfstream& tOutStream){int i;
WRITELOG(tOutStream, "dump SendQueue info:");for (i = 0; i < m_iNrOfClient; i++){
if (NULL != y4.m_pSocket) { WRITELOG(tOutStream, "Connection index is " << i + 1
<< " sendqueue info :");y4.m_pSocket->dumpSendQueue(tOutStream);} }
#5
#trans.mak
.SUFFIXES:
INFDIR=${INFORMIXDIR}
INC_DIR=${TRANSBALANCE_DIR}/include
SRC_DIR=${TRANSBALANCE_DIR}/source
OBJ_DIR=${TRANSBALANCE_DIR}/obj
EXE_FILE=transbalance
EXE=$(TRANSBALANCE_DIR)/bin/${EXE_FILE}
EXE=${TRANSBALANCE_DIR}/bin/transbalance
OBJ=${OBJ_DIR}/main.o \
${OBJ_DIR}/commonfunc.o \
${OBJ_DIR}/writelog.o \
${OBJ_DIR}/chinatelnode.o
${EXE}:${OBJ}
rm -f $@
${CC} ${OFLAG} -o ${EXE} -g ${OBJ} ${LIB}
${OBJ_DIR}/main.o:${SRC_DIR}/main.C
rm -f $@
${CC} ${CFLAG} -c ${SRC_DIR}/main.C -o $@
${OBJ_DIR}/balancemng.o:${SRC_DIR}/balancemng.C
rm -f $@
${CC} ${CFLAG} -c ${SRC_DIR}/balancemng.C -o $@
$(OBJ_DIR)/dbfunc.c: ${SRC_DIR}/dbfunc.ec
rm -f $@
$(INFDIR)/lib/esql/esqlc ${SRC_DIR}/dbfunc.ec
mv dbfunc.c $(OBJ_DIR)/.
$(OBJ_DIR)/dbfunc.o: $(OBJ_DIR)/dbfunc.c
rm -f $@
${CC} -c ${cFLAG} $(OBJ_DIR)/dbfunc.c -o $@
clean:
rm -f ${OBJ_DIR}/*.c
rm -f ${OBJ_DIR}/*.o
rm -f ${EXE}
.SUFFIXES:
INFDIR=${INFORMIXDIR}
INC_DIR=${TRANSBALANCE_DIR}/include
SRC_DIR=${TRANSBALANCE_DIR}/source
OBJ_DIR=${TRANSBALANCE_DIR}/obj
EXE_FILE=transbalance
EXE=$(TRANSBALANCE_DIR)/bin/${EXE_FILE}
EXE=${TRANSBALANCE_DIR}/bin/transbalance
OBJ=${OBJ_DIR}/main.o \
${OBJ_DIR}/commonfunc.o \
${OBJ_DIR}/writelog.o \
${OBJ_DIR}/chinatelnode.o
${EXE}:${OBJ}
rm -f $@
${CC} ${OFLAG} -o ${EXE} -g ${OBJ} ${LIB}
${OBJ_DIR}/main.o:${SRC_DIR}/main.C
rm -f $@
${CC} ${CFLAG} -c ${SRC_DIR}/main.C -o $@
${OBJ_DIR}/balancemng.o:${SRC_DIR}/balancemng.C
rm -f $@
${CC} ${CFLAG} -c ${SRC_DIR}/balancemng.C -o $@
$(OBJ_DIR)/dbfunc.c: ${SRC_DIR}/dbfunc.ec
rm -f $@
$(INFDIR)/lib/esql/esqlc ${SRC_DIR}/dbfunc.ec
mv dbfunc.c $(OBJ_DIR)/.
$(OBJ_DIR)/dbfunc.o: $(OBJ_DIR)/dbfunc.c
rm -f $@
${CC} -c ${cFLAG} $(OBJ_DIR)/dbfunc.c -o $@
clean:
rm -f ${OBJ_DIR}/*.c
rm -f ${OBJ_DIR}/*.o
rm -f ${EXE}
#6
是不是参数 没有了
#1
#2
把代码贴上来,具体的出错提示是什么,也说明 一下
#3
我也是菜鸟···帮不了楼主
#4
else{ERRORLOG("refreshReceiveQueue(): receiveQueue node is error ,queue opreate logic is wrong.");
} } else //如果该消息没有超时,那么后面的消息都没有超时 { break; }}}
//TSocketComm功能测试函数,打印对象的全部成员变量到日志文件
void TSocketComm::dump(HOfstream& tOutStream){char l_sBuf4Print[65535];tOutStream.reopen();
sprintf(l_sBuf4Print, "z1 :%d\n", z1);z3;sprintf(l_sBuf4Print, "m_iNrOfClient :%d\n", m_iNrOfClient);
z3;如上, m_iNrOfClient); z3;for (int l_iIterator = 0; l_iIterator < m_iNrOfClient; l_iIterator++)
{sprintf(l_sBuf4Print, "m_clientEntity[%03d].m_IP :%d\n", l_iIterator, z4.m_iIP); z3;
如上, l_iIterator, z4.m_iPort); z3;如上, l_iIterator, z4.m_tLinkStartTime); z3;
如上, l_iIterator, z4.m_pSocket); z3;如上, l_iIterator, z4.m_tState);z3;如上, l_iIterator, z4.m_sItemName);
z3;} .., m_iNrOfClient); z3; .., m_pSocketServer); z3; .., j9); z3;.., k4); z3;.., m_clientIP); z3;
.., j6); z3;.., z2); z3;.., j7); z3;.., m_lastListenTime); z3; .., m_lastRoutineTime); z3; .., k2);
z3; .., k3); z3; .., k1); z3; tOutStream.close();}
//TSocketComm功能测试函数,打印接收队列到日志文件
void TSocketComm::dumpRecQueue(HOfstream& tOutStream){
WRITELOG(tOutStream, "dump receivequeue info: count is " << k1);TRecQueueItem* pItem = k2;
int i = 1;while (NULL != pItem){//打印节点信息if (NULL != pItem->pMsg){
WRITELOG(tOutStream, "------Msg[" << i++ << "] addtime is " << pItem->msgAddTime
<< " ------");pItem->pMsg->dump(tOutStream); }//节点移动nextpItem = pItem->next;}return;}
// TSocketComm功能测试函数,打印发送队列到日志文件
void TSocketComm::dumpSendQueue(HOfstream& tOutStream){int i;
WRITELOG(tOutStream, "dump SendQueue info:");for (i = 0; i < m_iNrOfClient; i++){
if (NULL != y4.m_pSocket) { WRITELOG(tOutStream, "Connection index is " << i + 1
<< " sendqueue info :");y4.m_pSocket->dumpSendQueue(tOutStream);} }
} } else //如果该消息没有超时,那么后面的消息都没有超时 { break; }}}
//TSocketComm功能测试函数,打印对象的全部成员变量到日志文件
void TSocketComm::dump(HOfstream& tOutStream){char l_sBuf4Print[65535];tOutStream.reopen();
sprintf(l_sBuf4Print, "z1 :%d\n", z1);z3;sprintf(l_sBuf4Print, "m_iNrOfClient :%d\n", m_iNrOfClient);
z3;如上, m_iNrOfClient); z3;for (int l_iIterator = 0; l_iIterator < m_iNrOfClient; l_iIterator++)
{sprintf(l_sBuf4Print, "m_clientEntity[%03d].m_IP :%d\n", l_iIterator, z4.m_iIP); z3;
如上, l_iIterator, z4.m_iPort); z3;如上, l_iIterator, z4.m_tLinkStartTime); z3;
如上, l_iIterator, z4.m_pSocket); z3;如上, l_iIterator, z4.m_tState);z3;如上, l_iIterator, z4.m_sItemName);
z3;} .., m_iNrOfClient); z3; .., m_pSocketServer); z3; .., j9); z3;.., k4); z3;.., m_clientIP); z3;
.., j6); z3;.., z2); z3;.., j7); z3;.., m_lastListenTime); z3; .., m_lastRoutineTime); z3; .., k2);
z3; .., k3); z3; .., k1); z3; tOutStream.close();}
//TSocketComm功能测试函数,打印接收队列到日志文件
void TSocketComm::dumpRecQueue(HOfstream& tOutStream){
WRITELOG(tOutStream, "dump receivequeue info: count is " << k1);TRecQueueItem* pItem = k2;
int i = 1;while (NULL != pItem){//打印节点信息if (NULL != pItem->pMsg){
WRITELOG(tOutStream, "------Msg[" << i++ << "] addtime is " << pItem->msgAddTime
<< " ------");pItem->pMsg->dump(tOutStream); }//节点移动nextpItem = pItem->next;}return;}
// TSocketComm功能测试函数,打印发送队列到日志文件
void TSocketComm::dumpSendQueue(HOfstream& tOutStream){int i;
WRITELOG(tOutStream, "dump SendQueue info:");for (i = 0; i < m_iNrOfClient; i++){
if (NULL != y4.m_pSocket) { WRITELOG(tOutStream, "Connection index is " << i + 1
<< " sendqueue info :");y4.m_pSocket->dumpSendQueue(tOutStream);} }
#5
#trans.mak
.SUFFIXES:
INFDIR=${INFORMIXDIR}
INC_DIR=${TRANSBALANCE_DIR}/include
SRC_DIR=${TRANSBALANCE_DIR}/source
OBJ_DIR=${TRANSBALANCE_DIR}/obj
EXE_FILE=transbalance
EXE=$(TRANSBALANCE_DIR)/bin/${EXE_FILE}
EXE=${TRANSBALANCE_DIR}/bin/transbalance
OBJ=${OBJ_DIR}/main.o \
${OBJ_DIR}/commonfunc.o \
${OBJ_DIR}/writelog.o \
${OBJ_DIR}/chinatelnode.o
${EXE}:${OBJ}
rm -f $@
${CC} ${OFLAG} -o ${EXE} -g ${OBJ} ${LIB}
${OBJ_DIR}/main.o:${SRC_DIR}/main.C
rm -f $@
${CC} ${CFLAG} -c ${SRC_DIR}/main.C -o $@
${OBJ_DIR}/balancemng.o:${SRC_DIR}/balancemng.C
rm -f $@
${CC} ${CFLAG} -c ${SRC_DIR}/balancemng.C -o $@
$(OBJ_DIR)/dbfunc.c: ${SRC_DIR}/dbfunc.ec
rm -f $@
$(INFDIR)/lib/esql/esqlc ${SRC_DIR}/dbfunc.ec
mv dbfunc.c $(OBJ_DIR)/.
$(OBJ_DIR)/dbfunc.o: $(OBJ_DIR)/dbfunc.c
rm -f $@
${CC} -c ${cFLAG} $(OBJ_DIR)/dbfunc.c -o $@
clean:
rm -f ${OBJ_DIR}/*.c
rm -f ${OBJ_DIR}/*.o
rm -f ${EXE}
.SUFFIXES:
INFDIR=${INFORMIXDIR}
INC_DIR=${TRANSBALANCE_DIR}/include
SRC_DIR=${TRANSBALANCE_DIR}/source
OBJ_DIR=${TRANSBALANCE_DIR}/obj
EXE_FILE=transbalance
EXE=$(TRANSBALANCE_DIR)/bin/${EXE_FILE}
EXE=${TRANSBALANCE_DIR}/bin/transbalance
OBJ=${OBJ_DIR}/main.o \
${OBJ_DIR}/commonfunc.o \
${OBJ_DIR}/writelog.o \
${OBJ_DIR}/chinatelnode.o
${EXE}:${OBJ}
rm -f $@
${CC} ${OFLAG} -o ${EXE} -g ${OBJ} ${LIB}
${OBJ_DIR}/main.o:${SRC_DIR}/main.C
rm -f $@
${CC} ${CFLAG} -c ${SRC_DIR}/main.C -o $@
${OBJ_DIR}/balancemng.o:${SRC_DIR}/balancemng.C
rm -f $@
${CC} ${CFLAG} -c ${SRC_DIR}/balancemng.C -o $@
$(OBJ_DIR)/dbfunc.c: ${SRC_DIR}/dbfunc.ec
rm -f $@
$(INFDIR)/lib/esql/esqlc ${SRC_DIR}/dbfunc.ec
mv dbfunc.c $(OBJ_DIR)/.
$(OBJ_DIR)/dbfunc.o: $(OBJ_DIR)/dbfunc.c
rm -f $@
${CC} -c ${cFLAG} $(OBJ_DIR)/dbfunc.c -o $@
clean:
rm -f ${OBJ_DIR}/*.c
rm -f ${OBJ_DIR}/*.o
rm -f ${EXE}
#6
是不是参数 没有了