Functions

  • Sends addr1’s IP address and external port to addr2 using socket 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,