- Added a SICS to Hipadaba adapter
- Added a separate polling module to SICS
This commit is contained in:
7
nread.c
7
nread.c
@@ -686,6 +686,9 @@ extern int VerifyChannel(mkChannel *self); /* defined in network.c */
|
||||
int iRet, iStatus;
|
||||
int iCount;
|
||||
NetItem NItem;
|
||||
int conCount = 0;
|
||||
char num[50];
|
||||
IPair *options = NULL;
|
||||
|
||||
self = (pNetRead)pData;
|
||||
assert(self);
|
||||
@@ -716,9 +719,13 @@ extern int VerifyChannel(mkChannel *self); /* defined in network.c */
|
||||
{
|
||||
iCount = NItem.pSock->sockid;
|
||||
}
|
||||
conCount++;
|
||||
iRet = LLDnodePtr2Next(self->iList);
|
||||
}
|
||||
|
||||
snprintf(num,50,"%d", conCount);
|
||||
IFSetOption(pSICSOptions,"ConnectionCount",num);
|
||||
|
||||
/* the select itself */
|
||||
tmo.tv_usec = self->iReadTimeout;
|
||||
iCount++;
|
||||
|
||||
Reference in New Issue
Block a user