Subversion Repositories Tewi

Rev

Rev 16 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed

/* $Id: tw_server.h 43 2024-09-18 09:19:03Z nishi $ */

#ifndef __TW_SERVER_H__
#define __TW_SERVER_H__

#include "../config.h"

#include <stddef.h>

#ifndef NO_SSL
#include <openssl/ssl.h>
#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

#endif