- added command to change timeout of a scriptcontext controller

- created syncedprot
This commit is contained in:
zolliker
2012-08-21 06:44:29 +00:00
parent d70dffa00b
commit caf31b36cc
8 changed files with 99 additions and 50 deletions

10
ascon.c
View File

@@ -447,9 +447,9 @@ int AsconStdHandler(Ascon * a)
return 1;
}
if(a->lineCount == 0){
a->noResponse = 1;
a->noResponse = 1;
} else {
a->noResponse = 0;
a->noResponse = 0;
}
break; /* go to the base handler */
case AsconReading:
@@ -834,3 +834,9 @@ char *AsconHostport(Ascon *a)
return a->hostport;
}
double AsconGetSetTimeout(Ascon *a, double timeout, int setmode) {
if (setmode) {
a->timeout = timeout;
}
return a->timeout;
}