Network API
I uploaded my code to Github: https://github.com/NiLSPACE/MC-Web-Server
Reply
Thanks given by:
I even got a stacktrace working:
[Image: 1e393f8867.png]
Reply
Thanks given by:
Cool!
Reply
Thanks given by: NiLSPACE
Nice. This could be used by plugins like DynMap, or even for small server websites.
Reply
Thanks given by:
Actually, this functionality is expected to go right into WebAdmin. One of these days... Smile
Reply
Thanks given by:
Hurray!
Reply
Thanks given by:
Aww. So my plugin is pretty useless?
Reply
Thanks given by:
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.
Reply
Thanks given by: NiLSPACE
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 Wink ) so I expect to have a PR submitted by tomorrow.
Reply
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
Reply
Thanks given by:




Users browsing this thread: 13 Guest(s)