X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=simgear%2Fio%2Fsg_netChannel.hxx;h=538618c3f0187ef930d5d717dfd9d8a434dcdf72;hb=70c5d605641b628039f75cb8761ce783a17a5bdf;hp=bf28a730e2da55b0c172cb72bb006036e4962877;hpb=323d0d5ba0f8adff838a3a09d617a40de0cee1f0;p=simgear.git diff --git a/simgear/io/sg_netChannel.hxx b/simgear/io/sg_netChannel.hxx index bf28a730..538618c3 100644 --- a/simgear/io/sg_netChannel.hxx +++ b/simgear/io/sg_netChannel.hxx @@ -123,6 +123,8 @@ public: void addChannel(NetChannel* channel); void removeChannel(NetChannel* channel); + bool hasChannels() const { return !channels.empty(); } + bool poll(unsigned int timeout = 0); void loop(unsigned int timeout = 0); };