Files
STM32F4-Base/Drivers/BSP/NET/lftpd/lftpd.h
2026-07-21 20:18:28 +08:00

20 lines
366 B
C

#pragma once
#include <stdint.h>
typedef struct {
char directory[256];
int socket;
int data_socket;
} lftpd_client_t;
typedef struct {
const char *directory;
int port;
int server_socket;
lftpd_client_t *client;
} lftpd_t;
int lftpd_start(const char *directory, int port, lftpd_t *lftpd);
int lftpd_stop(lftpd_t *lftpd);