02-19-2015, 07:23 AM
Why can't things be easy?
Turns out that IPv6 dualstack sockets are hell on earth. Currently ran into an issue concerning sending UDP datagrams. In order to send a UDP datagram, the program needs to supply the "destination" parameter to the OS API function. On some OSes (Linux), the API function accepts IPv4 addresses for IPv6-dualstack sockets, on others (BSD, Windows) it does not. Real PITA.
Other than that, I think the UDP framework is almost complete, the bindings to Lua are already working (as much as I could test without sending or receiving anything ) so I expect to have a PR submitted by tomorrow.
Turns out that IPv6 dualstack sockets are hell on earth. Currently ran into an issue concerning sending UDP datagrams. In order to send a UDP datagram, the program needs to supply the "destination" parameter to the OS API function. On some OSes (Linux), the API function accepts IPv4 addresses for IPv6-dualstack sockets, on others (BSD, Windows) it does not. Real PITA.
Other than that, I think the UDP framework is almost complete, the bindings to Lua are already working (as much as I could test without sending or receiving anything ) so I expect to have a PR submitted by tomorrow.