HttpdImageChannel *hc = new HttpdImageChannel;
hc->setHandle ( handle );
+
+ poller.addChannel( hc );
}
+ simgear::NetChannelPoller poller;
public:
HttpdImageServer ( int port )
return;
}
+ poller.addChannel(this);
SG_LOG(SG_IO, SG_ALERT, "HttpdImage server started on port " << port);
}
+ void poll()
+ {
+ poller.poll();
+ }
};
//////////////////////////////////////////////////////////////
bool FGJpegHttpd::process() {
- simgear::NetChannel::poll();
+ imageServer->poll();
return true;
}