Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: SFML app phone-home!  (Read 2137 times)

0 Members and 1 Guest are viewing this topic.

slotdev

  • Sr. Member
  • ****
  • Posts: 385
    • View Profile
SFML app phone-home!
« on: August 09, 2011, 12:12:20 pm »
This is a bit odd. We have PC systems out in the field that may or may not be connected to the internet.

I'd like to implement something so that when they are connected, and my app is run, it simply sends a string of data to a server here, from which I can check how many times they have run the app that day, just a kind of "phone home" check.

Clearly we have a fixed IP address, but network stuff is currently something I know nothing about.

Does anyone have any ideas how I can do this?

Cheers
SFML 2.1

Haikarainen

  • Guest
SFML app phone-home!
« Reply #1 on: August 12, 2011, 10:49:14 pm »
How often will these strings be sent? If there is no special information to send, and the interval is like 1 hour , the clientside could become a very easy task.

Just make a function that connects to a tcpserver and disconnects.
https://legacy.sfmluploads.org/code/70

And on the serverside, just log all connection attempts.
https://legacy.sfmluploads.org/code/71

Something like that should work, havent tested or compiled it tho, so read up on the subject and learn wtf you are doing before using it :)[/code]

slotdev

  • Sr. Member
  • ****
  • Posts: 385
    • View Profile
SFML app phone-home!
« Reply #2 on: August 13, 2011, 10:54:02 pm »
That's great - thanks!! :)
SFML 2.1

 

anything