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 );
|
printf("Telnet server started on port %d\n", port );
|
||||||
|
|
||||||
enabled = true;
|
enabled = true;
|
||||||
|
poller.addChannel(this);
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -214,7 +215,7 @@ UGTelnet::close()
|
||||||
bool
|
bool
|
||||||
UGTelnet::process()
|
UGTelnet::process()
|
||||||
{
|
{
|
||||||
simgear::NetChannel::poll();
|
poller.poll();
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -230,4 +231,5 @@ UGTelnet::handleAccept()
|
||||||
addr.getHost(), addr.getPort() );
|
addr.getHost(), addr.getPort() );
|
||||||
PropsChannel* channel = new PropsChannel();
|
PropsChannel* channel = new PropsChannel();
|
||||||
channel->setHandle( handle );
|
channel->setHandle( handle );
|
||||||
|
poller.addChannel(channel);
|
||||||
}
|
}
|
||||||
|
|
|
@ -51,7 +51,7 @@ private:
|
||||||
*/
|
*/
|
||||||
int port;
|
int port;
|
||||||
bool enabled;
|
bool enabled;
|
||||||
|
simgear::NetChannelPoller poller;
|
||||||
public:
|
public:
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue