diff options
| author | Yuval Adam <_@yuv.al> | 2018-07-11 14:48:09 +0300 |
|---|---|---|
| committer | Yuval Adam <_@yuv.al> | 2018-07-11 14:48:09 +0300 |
| commit | 3da5d618b4c9248d74a500b2eba6450ff68590e8 (patch) | |
| tree | fcea91f65521f7a669ba9485dfbf833c60bf642f /src/main.rs | |
| parent | 070801f2ea08e83437d2a50b472a56725deeb947 (diff) | |
Add UDP comms thread
Diffstat (limited to 'src/main.rs')
| -rw-r--r-- | src/main.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs index 872a1f7..5ddb078 100644 --- a/src/main.rs +++ b/src/main.rs @@ -9,6 +9,7 @@ use std::thread; use std::sync::mpsc; mod cli; +mod upnp; fn main() { let app = App::new(env!("CARGO_PKG_NAME")) @@ -42,8 +43,11 @@ fn main() { process::exit(1); } - let (tx, rx) = mpsc::channel(); + let _udp = thread::spawn(move || { + upnp::discover(); + }); + let (tx, rx) = mpsc::channel(); let child = thread::spawn(move || { let mut controller = cli::Controller::init(); loop { |
