/* $Id: tw_server.h 140 2024-09-23 11:31:18Z nishi $ */ #ifndef __TW_SERVER_H__ #define __TW_SERVER_H__ #ifdef __cplusplus extern "C" { #endif #include "../config.h" #include #ifndef NO_SSL #include #endif int tw_server_init(void); void tw_server_loop(void); #ifndef NO_SSL size_t tw_read(SSL* ssl, int s, void* data, size_t len); size_t tw_write(SSL* ssl, int s, void* data, size_t len); #else size_t tw_read(void* ssl, int s, void* data, size_t len); size_t tw_write(void* ssl, int s, void* data, size_t len); #endif #ifdef __cplusplus } #endif #endif