- Many fixes to tas code
- fixes to amor writing and status code - edited ecbcounter to stop at no beam - updated documentation - fixed a bug in project code affecting SANS
This commit is contained in:
@@ -26,7 +26,7 @@ static mkChannel *connection = NULL;
|
||||
static void syncLogin(void)
|
||||
{
|
||||
int test, i;
|
||||
char pBueffel[1024], pRead[80];
|
||||
char pBueffel[2048], pRead[80];
|
||||
|
||||
/*
|
||||
connect
|
||||
@@ -51,6 +51,7 @@ static void syncLogin(void)
|
||||
pBueffel[0] = '\0';
|
||||
for(i = 0; i < 10; i++)
|
||||
{
|
||||
memset(pRead,0,80);
|
||||
test = NETRead(connection,pRead,70,10*1000);
|
||||
if(test < 0)
|
||||
{
|
||||
@@ -69,6 +70,7 @@ static void syncLogin(void)
|
||||
else
|
||||
{
|
||||
test = 1;
|
||||
break;
|
||||
}
|
||||
SicsWait(1);
|
||||
}
|
||||
@@ -174,14 +176,13 @@ int Synchronize(SConnection *pCon, SicsInterp *pSics, void *pData,
|
||||
first tell the remote server to backup
|
||||
*/
|
||||
SetStatusFixed(eBatch);
|
||||
strcpy(pBueffel,"transact backup");
|
||||
strcpy(pBueffel,"transact syncbackup");
|
||||
if(syncFile != NULL)
|
||||
{
|
||||
strcat(pBueffel," ");
|
||||
strcat(pBueffel,syncFile);
|
||||
}
|
||||
strcat(pBueffel,"\n");
|
||||
|
||||
test = NETWrite(connection,pBueffel,strlen(pBueffel));
|
||||
if(test != 1)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user