- Added bridge functions to histmemsec to make it look more like histmem
- Modifed many modules using histmem to work also with histmemsec - Extended tasker with task names and task groups - There is a new taskobj which allows to list tasks and to interact with them. - Task now supports running Tcl functions as tasks - There is a new experimental sctcomtask module which allows to define communication tasks against a scriptcontext. This is a new feature which should facilitate writing sequential scripts using asynchronous communication. - A fix to make spss7 work when there are no switches - ORION support for single X. TRICS measures crystals hanging down, ORION standing up SKIPPED: psi/ease.c psi/faverage.c psi/jvlprot.c psi/make_gen psi/pardef.c psi/polterwrite.c psi/psi.c psi/sinq.c psi/spss7.c
This commit is contained in:
10
nread.c
10
nread.c
@@ -1090,6 +1090,7 @@ static int CommandAcceptCB(int handle, void *userData)
|
||||
{
|
||||
SConnection *pCon = NULL;
|
||||
pCommandCBData usData = NULL;
|
||||
char buffer[80];
|
||||
|
||||
pCon = SCreateConnection(pServ->pSics, handle, 3);
|
||||
usData = malloc(sizeof(CommandCBData));
|
||||
@@ -1104,7 +1105,9 @@ static int CommandAcceptCB(int handle, void *userData)
|
||||
}
|
||||
usData->pCon = pCon;
|
||||
usData->state = COLLECT;
|
||||
TaskRegister(pServ->pTasker,
|
||||
snprintf(buffer,sizeof(buffer),"con%ld", pCon->ident);
|
||||
TaskRegisterN(pServ->pTasker,
|
||||
buffer,
|
||||
SCTaskFunction,
|
||||
SCSignalFunction, SCDeleteConnection, pCon, 1);
|
||||
ANETsetReadCallback(handle, CommandDataCB, usData, killCommandCBData);
|
||||
@@ -1293,6 +1296,7 @@ static int TelnetAcceptCB(int handle, void *userData)
|
||||
SConnection *pCon = NULL;
|
||||
pCommandCBData usData = NULL;
|
||||
pTelTask pTel = NULL;
|
||||
char buffer[80];
|
||||
|
||||
pCon = SCreateConnection(pServ->pSics, handle, 3);
|
||||
usData = malloc(sizeof(CommandCBData));
|
||||
@@ -1316,7 +1320,9 @@ static int TelnetAcceptCB(int handle, void *userData)
|
||||
}
|
||||
/* register connection and task */
|
||||
pCon->iTelnet = 1;
|
||||
TaskRegister(pServ->pTasker,
|
||||
snprintf(buffer,sizeof(buffer),"con%ld", pCon->ident);
|
||||
TaskRegisterN(pServ->pTasker,
|
||||
buffer,
|
||||
TelnetTask, TelnetSignal, DeleteTelnet, pTel, 1);
|
||||
ANETsetReadCallback(handle, ANETTelnetProcess,
|
||||
usData, killCommandCBData);
|
||||
|
||||
Reference in New Issue
Block a user