- added command to change timeout of a scriptcontext controller
- created syncedprot
This commit is contained in:
10
ascon.c
10
ascon.c
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user