- Fixed proton current in mesure
This commit is contained in:
6
nread.c
6
nread.c
@@ -689,6 +689,7 @@ extern int VerifyChannel(mkChannel *self); /* defined in network.c */
|
||||
int conCount = 0;
|
||||
char num[50];
|
||||
IPair *options = NULL;
|
||||
char buffer[1024];
|
||||
|
||||
self = (pNetRead)pData;
|
||||
assert(self);
|
||||
@@ -707,6 +708,7 @@ extern int VerifyChannel(mkChannel *self); /* defined in network.c */
|
||||
FD_ZERO(&lMask);
|
||||
iRet = LLDnodePtr2First(self->iList);
|
||||
iCount = 0;
|
||||
buffer[0] = '\0';
|
||||
while(iRet != 0)
|
||||
{
|
||||
LLDnodeDataTo(self->iList,&NItem);
|
||||
@@ -714,6 +716,8 @@ extern int VerifyChannel(mkChannel *self); /* defined in network.c */
|
||||
{
|
||||
break;
|
||||
}
|
||||
sprintf(num,"%d, type %d:", NItem.pSock->sockid, NItem.eType);
|
||||
strcat(buffer,num);
|
||||
FD_SET(NItem.pSock->sockid,&lMask);
|
||||
if(NItem.pSock->sockid > iCount)
|
||||
{
|
||||
@@ -725,6 +729,8 @@ extern int VerifyChannel(mkChannel *self); /* defined in network.c */
|
||||
|
||||
snprintf(num,50,"%d", conCount);
|
||||
IFSetOption(pSICSOptions,"ConnectionCount",num);
|
||||
IFSetOption(pSICSOptions,"ConMask",buffer);
|
||||
|
||||
|
||||
/* the select itself */
|
||||
tmo.tv_usec = self->iReadTimeout;
|
||||
|
||||
Reference in New Issue
Block a user