src/network/index_server.cpp File Reference

#include <SDL_net.h>
#include <fstream>
#include "download.h"
#include "index_server.h"
#include "index_svr_msg.h"
#include "network.h"
#include "gui/question.h"
#include "include/app.h"
#include "include/constant.h"
#include "tool/debug.h"
#include "tool/i18n.h"
#include "tool/random.h"

Include dependency graph for index_server.cpp:

Go to the source code of this file.

Functions

static ssize_t getline (std::string &line, std::ifstream &file)

Variables

IndexServer index_server


Function Documentation

static ssize_t getline ( std::string &  line,
std::ifstream &  file 
) [static]

Definition at line 137 of file index_server.cpp.

00138 {
00139         line.clear();
00140         std::getline(file, line);
00141         if(file.eof())
00142                 return -1;
00143         return line.size();
00144 }

Here is the caller graph for this function:


Variable Documentation

IndexServer index_server

Definition at line 36 of file index_server.cpp.


Generated on Mon Jan 1 13:22:25 2007 for Wormux by  doxygen 1.4.7