Fix compilation of UGear_telnet.
This commit is contained in:
parent
6d158e886c
commit
50de7a8fbb
2 changed files with 5 additions and 3 deletions
|
@ -194,7 +194,8 @@ UGTelnet::open()
|
|||
printf("Telnet server started on port %d\n", port );
|
||||
|
||||
enabled = true;
|
||||
|
||||
poller.addChannel(this);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@ -214,7 +215,7 @@ UGTelnet::close()
|
|||
bool
|
||||
UGTelnet::process()
|
||||
{
|
||||
simgear::NetChannel::poll();
|
||||
poller.poll();
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@ -230,4 +231,5 @@ UGTelnet::handleAccept()
|
|||
addr.getHost(), addr.getPort() );
|
||||
PropsChannel* channel = new PropsChannel();
|
||||
channel->setHandle( handle );
|
||||
poller.addChannel(channel);
|
||||
}
|
||||
|
|
|
@ -51,7 +51,7 @@ private:
|
|||
*/
|
||||
int port;
|
||||
bool enabled;
|
||||
|
||||
simgear::NetChannelPoller poller;
|
||||
public:
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue