Atrinik Client 2.5
Functions | Variables
client/updates.c File Reference
#include <global.h>

Go to the source code of this file.

Functions

static void file_updates_request (char *filename)
void cmd_request_update (unsigned char *data, int len)
int file_updates_finished ()
void file_updates_parse ()

Variables

static size_t file_updates_requested = 0

Detailed Description

Handles code for file updates by the server.

Definition in file updates.c.


Function Documentation

void cmd_request_update ( unsigned char *  data,
int  len 
)

We have received the file update command, in which the updated file is, so parse it.

Parameters:
dataData to parse.
lenLength of 'data'.

Definition at line 60 of file updates.c.

int file_updates_finished ( )

Check if we have finished downloading updated files from the server.

Returns:
1 if we have finished, 0 otherwise.

Definition at line 107 of file updates.c.

void file_updates_parse ( )

Parse the updates srv file, and request updated files as needed.

Definition at line 114 of file updates.c.

static void file_updates_request ( char *  filename) [static]

Request the server to send us an updated copy of a file.

Parameters:
filenameWhat to request.

Definition at line 41 of file updates.c.


Variable Documentation

size_t file_updates_requested = 0 [static]

How many file updates have been requested. This is used to block the login: it's not possible to login unless this value is 0, to ensure everything is downloaded intact from the server first.

Definition at line 36 of file updates.c.