japp icon indicating copy to clipboard operation
japp copied to clipboard

Add: Location on connect or status

Open azurda opened this issue 9 years ago • 6 comments

Adding a feature to show on connect the player's country through an asynchronous request

azurda avatar Feb 24 '15 22:02 azurda

cURL needed for this

Exmirai avatar Feb 25 '15 03:02 Exmirai

cURL and pthread

azurda avatar Feb 25 '15 08:02 azurda

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)

Razish avatar Feb 25 '15 11:02 Razish

std::async

Exmirai avatar Mar 15 '15 11:03 Exmirai

Why would you need curl for this? Use geoip...

https://github.com/maxmind/libmaxminddb / https://github.com/maxmind/geoip-api-c

ensiform avatar Mar 15 '15 15:03 ensiform

This is partially implemented using the MaxMind database, but is not entirely functional yet (at-least not on Linux, unsure about Windows)

Razish avatar May 12 '16 01:05 Razish