~ubuntu-branches/ubuntu/quantal/stormbaancoureur/quantal

« back to all changes in this revision

Viewing changes to src-stormbaancoureur/postscore.cxx

  • Committer: Bazaar Package Importer
  • Author(s): Barry deFreese, Barry deFreese
  • Date: 2009-12-03 19:47:21 UTC
  • mfrom: (5.1.1 sid)
  • Revision ID: james.westby@ubuntu.com-20091203194721-i5m322qbcee1em63
Tags: 2.1.6-1
[ Barry deFreese ]
* New upstream release.
  + Drop gcc-4.4 patch, merged upstream.
  + Uses new leaderboard server. (Closes: #534773).
* Update Homepage.
* Bump Standards Version to 3.8.3. (No changes needed).

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
 
22
22
#include "postscore.h"
23
23
 
24
 
static const char *hostname = "leaderboard.stolk.org";
 
24
static const char *hostname = "www.stolk.org";
25
25
static const int portnr=7460;
26
26
 
27
27
static char msg[1472];
38
38
 
39
39
  struct hostent *he = gethostbyname(hostname);
40
40
  if (!he)
 
41
  {
41
42
    perror("gethostbyname");
42
 
  assert(he);
 
43
    return;
 
44
  }
43
45
  struct in_addr ip_addr = *(struct in_addr *)(he->h_addr);
44
46
  char *ipnr = inet_ntoa(ip_addr);
45
47