Module hole_punch_connect::server
source · Functions
- Sends
addr1
’s IP address and external port toaddr2
usingsocket
and vice versa. - Use this function if you want to run a standard server which waits for two clients to send the same identification packet, then sends the clients’ IP address and external port number to each other. It also has some basic protection against someone trying to overload the server by sending multiple packages from the same ip. If you want something more customisable, take a look at
make_match
,