#include <stdio.h>#include <stdlib.h>#include "lib/enchufe.h"#include "lib/inode.h"#include "lib/dnode.h"#include "lib/block.h"#include "lib/log.h"Macros | |
| #define | BUF_LEN 0x1000 |
Functions | |
| void | add (DNode node) |
| void | list (Enchufe cliente) |
| void | reg (IPv4 address, Port port) |
| Registers a data node. | |
| void | put (Enchufe cliente, size_t fsize, SafeStr fname) |
| Puts file data on the server. | |
| void | get (Enchufe cliente, SafeStr fname) |
| Get file data from server. | |
| bool | handler (Enchufe enchufe) |
| Handles the connections when they come in. | |
| int | main (int argc, char **argv) |
| This is the main metadata server. | |
| #define BUF_LEN 0x1000 |
| void add | ( | DNode | node | ) |
| bool handler | ( | Enchufe | enchufe | ) |
Handles the connections when they come in.
| void list | ( | Enchufe | cliente | ) |
| int main | ( | int | argc, |
| char ** | argv ) |
This is the main metadata server.