japp
japp copied to clipboard
Add: Location on connect or status
Adding a feature to show on connect the player's country through an asynchronous request
cURL needed for this
cURL and pthread
Maybe not pthread - you may be able to issue an asynchronous request with cURL and poll for a response every frame (or deny their connection until the response is received)
std::async
Why would you need curl for this? Use geoip...
https://github.com/maxmind/libmaxminddb / https://github.com/maxmind/geoip-api-c
This is partially implemented using the MaxMind database, but is not entirely functional yet (at-least not on Linux, unsure about Windows)