1 /* bzflag
2  * Copyright (c) 1993-2021 Tim Riker
3  *
4  * This package is free software;  you can redistribute it and/or
5  * modify it under the terms of the license found in the file
6  * named COPYING that should have accompanied this file.
7  *
8  * THIS PACKAGE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
9  * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
10  * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
11  */
12 
13 // interface header
14 #include "MasterBanList.h"
15 
get(const std::string & URL)16 const std::string &MasterBanList::get(const std::string &URL)
17 {
18     data = "";
19     // get all up on the internet and go get the thing
20     setURL(URL);
21     performWait();
22     return data;
23 }
24 
finalization(char * cURLdata,unsigned int length,bool good)25 void MasterBanList::finalization(char *cURLdata, unsigned int length,
26                                  bool good)
27 {
28     if (good)
29         data = std::string(cURLdata, length);
30 }
31 
32 // Local Variables: ***
33 // mode: C++ ***
34 // tab-width: 4 ***
35 // c-basic-offset: 4 ***
36 // indent-tabs-mode: nil ***
37 // End: ***
38 // ex: shiftwidth=4 tabstop=4
39