diff options
Diffstat (limited to 'libraries/Bridge/YunServer.h')
-rw-r--r-- | libraries/Bridge/YunServer.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libraries/Bridge/YunServer.h b/libraries/Bridge/YunServer.h index e1be55a..eb16703 100644 --- a/libraries/Bridge/YunServer.h +++ b/libraries/Bridge/YunServer.h @@ -35,9 +35,13 @@ public: virtual size_t write(uint8_t c) { /* TODO */ } + void listenOnLocalhost() { useLocalhost = true; } + void noListenOnLocalhost() { useLocalhost = false; } + private: uint16_t port; bool listening; + bool useLocalhost; BridgeClass &bridge; }; |