aboutsummaryrefslogtreecommitdiff
path: root/src/socket.h
Commit message (Expand)AuthorAge
* Better handling of SendFailedException in ConnectionPerttu Ahola2011-10-18
* added ipban supportConstantin Wenger2011-08-12
* some fixes to make compiling on some bsd easierPerttu Ahola2011-02-11
* fully working i guessPerttu Ahola2011-02-11
* new texture stuff quite workingPerttu Ahola2011-02-11
* local game connects to 127.0.0.1 instead of localhost (windows returns an ipv...Perttu Ahola2011-02-08
* license stuffPerttu Ahola2010-11-29
* Initial filesPerttu Ahola2010-11-27
">(at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ #ifndef FILESYS_HEADER #define FILESYS_HEADER #include <string> #include <vector> #include "exceptions.h" #ifdef _WIN32 // WINDOWS #define DIR_DELIM "\\" #define DIR_DELIM_C '\\' #else // POSIX #define DIR_DELIM "/" #define DIR_DELIM_C '/' #endif namespace fs { struct DirListNode { std::string name; bool dir; }; std::vector<DirListNode> GetDirListing(std::string path); // Returns true if already exists bool CreateDir(std::string path); // Create all directories on the given path that don't already exist. bool CreateAllDirs(std::string path); bool PathExists(std::string path); // Only pass full paths to this one. True on success. // NOTE: The WIN32 version returns always true. bool RecursiveDelete(std::string path); // Only pass full paths to this one. True on success. bool RecursiveDeleteContent(std::string path); }//fs #endif