Changeset 43 in Main for trunk/Server/tw_server.h


Ignore:
Timestamp:
Sep 18, 2024, 6:19:03 PM (2 months ago)
Author:
Nishi
Message:

add NO_SSL

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Server/tw_server.h

    r16 r43  
    44#define __TW_SERVER_H__
    55
     6#include "../config.h"
     7
     8#include <stddef.h>
     9
     10#ifndef NO_SSL
    611#include <openssl/ssl.h>
     12#endif
    713
    814int tw_server_init(void);
    915void tw_server_loop(void);
     16
     17#ifndef NO_SSL
    1018size_t tw_read(SSL* ssl, int s, void* data, size_t len);
    1119size_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
    1224
    1325#endif
Note: See TracChangeset for help on using the changeset viewer.