source: Main/trunk/Server/tw_server.h@ 81

Last change on this file since 81 was 43, checked in by Nishi, on Sep 18, 2024 at 6:19:03 PM

add NO_SSL

  • Property svn:keywords set to Id
File size: 476 bytes
Line 
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
6#include "../config.h"
7
8#include <stddef.h>
9
10#ifndef NO_SSL
11#include <openssl/ssl.h>
12#endif
13
14int tw_server_init(void);
15void tw_server_loop(void);
16
17#ifndef NO_SSL
18size_t tw_read(SSL* ssl, int s, void* data, size_t len);
19size_t tw_write(SSL* ssl, int s, void* data, size_t len);
20#else
21size_t tw_read(void* ssl, int s, void* data, size_t len);
22size_t tw_write(void* ssl, int s, void* data, size_t len);
23#endif
24
25#endif
Note: See TracBrowser for help on using the repository browser.