Atrinik Client  4.0
Functions | Variables
updates.c File Reference
#include <global.h>
#include <toolkit/packet.h>
#include <toolkit/path.h>

Go to the source code of this file.

Functions

static void file_updates_request (char *filename)
 
void socket_command_file_update (uint8_t *data, size_t len, size_t pos)
 
int file_updates_finished (void)
 
void file_updates_parse (void)
 

Variables

static size_t file_updates_requested = 0
 

Detailed Description

Handles code for file updates by the server.

Author
Alex Tokar

Definition in file updates.c.

Function Documentation

int file_updates_finished ( void  )

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

Returns
1 if we have finished, 0 otherwise.

Definition at line 101 of file updates.c.

void file_updates_parse ( void  )

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

Definition at line 109 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 48 of file updates.c.

void socket_command_file_update ( uint8_t *  data,
size_t  len,
size_t  pos 
)

Definition at line 61 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 41 of file updates.c.