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

Last change on this file since 88 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
RevLine 
[8]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]6#include "../config.h"
7
8#include <stddef.h>
9
10#ifndef NO_SSL
[16]11#include <openssl/ssl.h>
[43]12#endif
[16]13
[8]14int tw_server_init(void);
[9]15void tw_server_loop(void);
[43]16
17#ifndef NO_SSL
[16]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);
[43]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
[8]24
25#endif
Note: See TracBrowser for help on using the repository browser.