Subversion Repositories Tewi

Rev

Rev 43 | Details | Compare with Previous | Last modification | View Log | RSS feed

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