TFTP
Change headers + Add logging
This commit is contained in:
@@ -1,6 +1,8 @@
|
|||||||
//
|
/**
|
||||||
// Created by sanderspeetjens on 06/11/23.
|
* @file tftp.h
|
||||||
//
|
* @brief tftp server
|
||||||
|
* @author Speetjens S.
|
||||||
|
*/
|
||||||
|
|
||||||
#ifndef PROJECT_TFTP_H
|
#ifndef PROJECT_TFTP_H
|
||||||
#define PROJECT_TFTP_H
|
#define PROJECT_TFTP_H
|
||||||
|
|||||||
@@ -1,24 +1,26 @@
|
|||||||
//
|
/**
|
||||||
// Created by sanderspeetjens on 06/11/23.
|
* @file tftp.c
|
||||||
//
|
* @brief tftp server
|
||||||
|
* @author Speetjens S.
|
||||||
|
*/
|
||||||
|
|
||||||
#include "tftp.h"
|
#include "tftp.h"
|
||||||
|
|
||||||
static const char* TAG = "tftp_server";
|
static const char* TAG = "tftp_server";
|
||||||
|
|
||||||
void *tftp_open(const char *fname, const char *mode, u8_t write) {
|
void *tftp_open(const char *fname, const char *mode, u8_t write) {
|
||||||
|
LOG_INFO(TAG, "Opening %s", fname);
|
||||||
}
|
}
|
||||||
|
|
||||||
void tftp_close(void *handle) {
|
void tftp_close(void *handle) {
|
||||||
|
LOG_INFO(TAG, "closing file");
|
||||||
}
|
}
|
||||||
int tftp_read(void* handle, void* buf, int bytes) {
|
int tftp_read(void* handle, void* buf, int bytes) {
|
||||||
|
LOG_INFO(TAG, "reading file");
|
||||||
}
|
}
|
||||||
|
|
||||||
int tftp_write(void* handle, struct pbuf* p) {
|
int tftp_write(void* handle, struct pbuf* p) {
|
||||||
|
LOG_INFO(TAG, "Writing file");
|
||||||
}
|
}
|
||||||
|
|
||||||
struct tftp_context tftpContext_s = {
|
struct tftp_context tftpContext_s = {
|
||||||
|
|||||||
Reference in New Issue
Block a user