RCON plugin or sample code

I am looking for a plugin or some sample code how to implement the RCON API. Already have a Controller based Rcon command but I want use RCON for managing dedicated servers.

I haven’t looked into it too much but it seems like Unreal Tournament has RCON functionality, I’d start there.

I have looked at the UT code but it only has the same simple RPC exec style rcon that I have.

ARK seems to have it fully supported, but I assume the source code is not availble there.