/[tewi]/Server/tw_server.h
ViewVC logotype

Annotation of /Server/tw_server.h

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (hide annotations)
Thu Oct 17 09:53:39 2024 UTC (4 weeks ago) by nishi
Branch: MAIN
CVS Tags: v2_05A, v2_05, HEAD
Content type: text/x-c
update

1 nishi 1.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    
6     #ifdef __cplusplus
7     extern "C" {
8     #endif
9    
10     #include "../config.h"
11    
12     #include <stddef.h>
13    
14     #ifndef NO_SSL
15     #include <openssl/ssl.h>
16     #endif
17    
18     int tw_server_init(void);
19     void tw_server_loop(void);
20    
21     #ifndef NO_SSL
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);
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
28    
29     #ifdef __cplusplus
30     }
31     #endif
32    
33     #endif

nishi@chaotic.ninja
ViewVC Help
Powered by ViewVC 1.3.0-dev