~rootmos/turn

9adf397e3eea75f808207579d922944928b0f69d — Gustav Behm 2 years ago 8026ec7
Use std instead of tokio in the client
1 files changed, 3 insertions(+), 4 deletions(-)

M src/client.rs
M src/client.rs => src/client.rs +3 -4
@@ 1,6 1,5 @@
#[tokio::main(flavor = "current_thread")]
async fn main() {
fn main() {
    let msg = std::env::args().nth(1).expect("incorrect invocation");
    let s = tokio::net::UdpSocket::bind("127.0.0.1:0").await.unwrap();
    s.send_to(msg.as_bytes(), "127.0.0.1:5086").await.unwrap();
    let s = std::net::UdpSocket::bind("127.0.0.1:0").unwrap();
    s.send_to(msg.as_bytes(), "127.0.0.1:5086").unwrap();
}