lunatic-solutions / lunatic-rs

This library contains higher level Rust wrappers for low level Lunatic syscalls.
275 stars 31 forks source link

Testing for Network #30

Open pinkforest opened 2 years ago

pinkforest commented 2 years ago

https://github.com/lunatic-solutions/rust-lib/pull/29#issuecomment-1156219719

I guess I will figure something out :)

pinkforest commented 2 years ago

I added basic UdpSocket stateful IPv4 tests for connect, send, recv, send_to, recv_from in #33 I didn't hardcode the port numbers and relies on :0 and then getting the local_addr - I am already worried hardcoding 127.0.0.1

bkolobara commented 2 years ago

I think that this is a good approach for now. Hardcoding the ip to 127.0.0.1 should also be fine in most cases.