- changed select calls to newly indroduced uselect
This commit is contained in:
@ -13,6 +13,7 @@
|
|||||||
#include <ghttp.h>
|
#include <ghttp.h>
|
||||||
#include <sicsdata.h>
|
#include <sicsdata.h>
|
||||||
#include <HistMem.h>
|
#include <HistMem.h>
|
||||||
|
#include "uselect.h"
|
||||||
/*---------------------------------------------------------------------*/
|
/*---------------------------------------------------------------------*/
|
||||||
typedef struct {
|
typedef struct {
|
||||||
ghttp_request *request;
|
ghttp_request *request;
|
||||||
@ -130,7 +131,7 @@ static int HttpHandler(Ascon *a) {
|
|||||||
socke = ghttp_get_socket(pHttp->request);
|
socke = ghttp_get_socket(pHttp->request);
|
||||||
FD_ZERO(&rmask);
|
FD_ZERO(&rmask);
|
||||||
FD_SET(socke,&rmask);
|
FD_SET(socke,&rmask);
|
||||||
selStat = select(socke+1,&rmask, NULL, NULL, &tmo);
|
selStat = uselect(socke+1,&rmask, NULL, NULL, &tmo);
|
||||||
if(selStat != 0){
|
if(selStat != 0){
|
||||||
status = ghttp_process(pHttp->request);
|
status = ghttp_process(pHttp->request);
|
||||||
a->state = AsconReading;
|
a->state = AsconReading;
|
||||||
|
Reference in New Issue
Block a user