1/**
2 * \file
3 * \brief TFTP library
4 */
5
6/*
7 * Copyright (c) 2015 ETH Zurich.
8 * All rights reserved.
9 *
10 * This file is distributed under the terms in the attached LICENSE file.
11 * If you do not find this file, copies can be found by writing to:
12 * ETH Zurich D-INFK, Universitaetsstrasse 6, CH-8092 Zurich. Attn: Systems Group.
13 */
14
15#include <stdlib.h>
16#include <stdio.h>
17
18#include <barrelfish/barrelfish.h>
19
20#include <tftp/tftp.h>
21#include "tftp_internal.h"
22
23
24/**
25 * \brief starts the tftp server on this machine on a given port
26 *
27 * \param ip    ip address to be used
28 * \param port  port to be used
29 * \param cb    callback function called when clients connect
30 *
31 * \return  SYS_ERR_OK on success
32 *          TFTP_ERR_* on failure
33 */
34errval_t tftp_server_accept(char *ip, uint16_t port, tfpt_server_cb_f_t cb)
35{
36    USER_PANIC("NYI");
37    return SYS_ERR_OK;
38}
39
40
41/**
42 * \brief terminates the tftp server connection
43 *
44 * \return  SYS_ERR_OK on success
45 *          TFTP_ERR_* on failure
46 */
47errval_t tftp_server_terminate(void)
48{
49    USER_PANIC("NYI");
50    return SYS_ERR_OK;
51}
52