Distributed File System 1
Distributed file system in C
Loading...
Searching...
No Matches
data-node.c File Reference
#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
#include "lib/lib.h"
#include "lib/enchufe.h"
#include "lib/uuid.h"
#include "lib/log.h"

Macros

#define BUF_LEN   0x1000

Functions

void lire (Enchufe cliente, UUID cid, SafeStr data_dir_path)
 Handle when a client wants to read a block.
void ecriver (Enchufe cliente, size_t nbytes, SafeStr data_dir_path)
 Handle when a cllient wants to write a block.
int main (int argc, Str *argv)
 This is the data node implementation.

Macro Definition Documentation

◆ BUF_LEN

#define BUF_LEN   0x1000

Function Documentation

◆ ecriver()

void ecriver ( Enchufe cliente,
size_t nbytes,
SafeStr data_dir_path )

Handle when a cllient wants to write a block.

◆ lire()

void lire ( Enchufe cliente,
UUID cid,
SafeStr data_dir_path )

Handle when a client wants to read a block.

◆ main()

int main ( int argc,
Str * argv )

This is the data node implementation.