02-16-2015, 02:26 AM
I uploaded my code to Github: https://github.com/NiLSPACE/MC-Web-Server
Network API
|
02-16-2015, 02:26 AM
I uploaded my code to Github: https://github.com/NiLSPACE/MC-Web-Server
02-16-2015, 06:34 AM
I even got a stacktrace working:
02-16-2015, 07:38 AM
Nice. This could be used by plugins like DynMap, or even for small server websites.
02-16-2015, 07:57 AM
Actually, this functionality is expected to go right into WebAdmin. One of these days...
02-16-2015, 08:50 AM
Hurray!
02-16-2015, 05:35 PM
Aww. So my plugin is pretty useless?
02-16-2015, 06:13 PM
Anything that lets you learn while enjoying it is, by definition, not useless. And you brought in an interesting new approach, integrating Lua code into HTML, instead of the other way around - it might be good to investigate this a bit more.
Thanks given by: NiLSPACE
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. Thanks given by: Seadragon91 , NiLSPACE , jan64
I've got UDP working quite nicely, I even wrote a simple plugin that broadcasts the server's existence on LAN (so that vanilla client sees the local servers automatically without the need to add them - http://wiki.vg/Lan_Worlds)
Now I just need to make it compile under Linux, there are so many minor incompatibilities in there! Functions taking size_t instead of int params, etc. Plugin's here: https://github.com/madmaxoft/LANBroadcaster |
« Next Oldest | Next Newest »
|