Add simulation tool running on x86 host for web-pages of an RTL8372 switch

This commit is contained in:
logicog
2025-08-20 10:16:00 +02:00
parent 1caadbe631
commit 12b53c22f1
3 changed files with 270 additions and 1 deletions
+26
View File
@@ -0,0 +1,26 @@
#ifndef server_h
#define server_h
#include <netinet/in.h>
#define BUFFER_SIZE 16000
struct Server {
int domain;
int port;
int service;
int protocol;
int backlog;
u_long interface;
int socket;
struct sockaddr_in address;
void (*launch)(struct Server *server);
};
struct Server server_Constructor(int port, void (*launch)(struct Server *server));
void launch(struct Server *server);
#endif