/* * hp_tcp_services.h * Lightweight TCP honeypot listeners (SSH, Telnet, HTTP, FTP). * Each service runs as an independent FreeRTOS task. */ #pragma once #include typedef enum { HP_SVC_SSH = 0, HP_SVC_TELNET = 1, HP_SVC_HTTP = 2, HP_SVC_FTP = 3, HP_SVC_COUNT } hp_svc_id_t; /* Start / stop a single service */ void hp_svc_start(hp_svc_id_t svc); void hp_svc_stop(hp_svc_id_t svc); bool hp_svc_running(hp_svc_id_t svc); /* Get service status line (key=value format) */ int hp_svc_status(hp_svc_id_t svc, char *buf, size_t len); /* Map service name string to id, returns -1 on unknown */ int hp_svc_name_to_id(const char *name); /* Map id to name */ const char *hp_svc_id_to_name(hp_svc_id_t svc);