- Fixed a bug which caused the SICServer to die when a socket was broken.

- Fixed many things in DIFRAC subsystem:
  * Recoded tcentr.f etc so that the course centering will work and will not
    go into an endless loop.
  * fixed boundary overwrites which occurred when yesno or alfnum where
    uset to get a single character and several were given.
  * Addeded documentation for DIFRAC
- Added tcl-files which  support the WWW status system
This commit is contained in:
cvs
2000-03-31 13:16:50 +00:00
parent d02a81400f
commit 714b8ae84d
35 changed files with 3069 additions and 203 deletions

View File

@ -105,7 +105,14 @@
if(self->pCon->iEnd)
{
return 0;
if(self->pCon->inUse > 0)
{
return 1;
}
else
{
return 0;
}
}
/* pop and execute */
@ -136,11 +143,13 @@
pLogin = strstr(pPtr,self->pLoginWord);
if(!pLogin)
{
SCWrite(self->pCon,"------------------- Get Lost -------------------",
eError);
SCWrite(self->pCon,
"------------------- Get Lost -------------------",
eError);
if(time(&shit) > self->tStart + LOGINWAIT)
{
SCWrite(self->pCon,"I cannot stand your login attempts anymore!",
SCWrite(self->pCon,
"I cannot stand your login attempts anymore!",
eError);
NetReadRemove(pServ->pReader,self->pCon->pSock);
self->pCon->iEnd = 1;
@ -161,7 +170,8 @@
sprintf(pBuffer,"SYSTEM ATTACK by %s / %s",pUser,
pPasswd);
SICSLogWrite(pBuffer,eInternal);
SCWrite(self->pCon,"I do not know you, I do not let you in",eError);
SCWrite(self->pCon,
"I do not know you, I do not let you in",eError);
SendGA(self->pCon);
free(pPtr);
return 1;
@ -191,7 +201,14 @@
/* check for end */
if(self->pCon->iEnd)
{
return 0;
if(self->pCon->inUse > 0)
{
return 1;
}
else
{
return 0;
}
}
return 1;