lunatic-solutions/lunatic-rs

Testing for Network

pinkforest opened this issue · 2 comments

#29 (comment)

I guess I will figure something out :)

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

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.