Subversion Repositories Tewi

Rev

Rev 16 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

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