Subversion Repositories Tewi

Rev

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

Rev Author Line No. Line
8 nishi 1
/* $Id: tw_server.h 43 2024-09-18 09:19:03Z nishi $ */
2
 
3
#ifndef __TW_SERVER_H__
4
#define __TW_SERVER_H__
5
 
43 nishi 6
#include "../config.h"
7
 
8
#include <stddef.h>
9
 
10
#ifndef NO_SSL
16 nishi 11
#include <openssl/ssl.h>
43 nishi 12
#endif
16 nishi 13
 
8 nishi 14
int tw_server_init(void);
9 nishi 15
void tw_server_loop(void);
43 nishi 16
 
17
#ifndef NO_SSL
16 nishi 18
size_t tw_read(SSL* ssl, int s, void* data, size_t len);
19
size_t tw_write(SSL* ssl, int s, void* data, size_t len);
43 nishi 20
#else
21
size_t tw_read(void* ssl, int s, void* data, size_t len);
22
size_t tw_write(void* ssl, int s, void* data, size_t len);
23
#endif
8 nishi 24
 
25
#endif