|The local port to bind to. Pass 0 to have the OS autoassign a port. |
|The local network card address to bind to, such as "127.0.0.1". Pass an empty string to use INADDR_ANY. |
|XBOX only: set IPPROTO_VDP if you want to use VDP. If enabled, this socket does not support broadcast to 255.255.255.255. |
IP version: For IPV4, use AF_INET (default). For IPV6, use AF_INET6. To autoselect, use AF_UNSPEC. IPV6 is the newer internet protocol. Instead of addresses such as 18.104.22.168, you may have an address such as fe80::7c:31f7:fec4:27de14. Encoding takes 16 bytes instead of 4, so IPV6 is less efficient for bandwidth. On the positive side, NAT Punchthrough is not needed and should not be used with IPV6 because there are enough addresses that routers do not need to create address mappings. RakPeer::Startup() will fail if this IP version is not supported.