mirror of
https://gitee.com/acl-dev/acl.git
synced 2024-12-15 17:30:53 +08:00
cf2528eb7c
完善了非阻塞IO的SSL功能;将 acl/samples/ 下的示例分别移到 lib_acl 及 lib_protocol 目录下
20 lines
507 B
C
20 lines
507 B
C
#include "lib_acl.h"
|
|
#include "service_main.h"
|
|
|
|
int main(int argc, char *argv[])
|
|
{
|
|
/* acl_debug_malloc_init("log.txt"); */
|
|
acl_aio_server_main(argc, argv, service_main,
|
|
ACL_APP_CTL_INIT_FN, service_init,
|
|
/* ACL_APP_CTL_INIT_CTX, NULL, */
|
|
ACL_APP_CTL_EXIT_FN, service_exit,
|
|
/* ACL_APP_CTL_EXIT_CTX, NULL, */
|
|
ACL_APP_CTL_CFG_BOOL, service_conf_bool_tab,
|
|
ACL_APP_CTL_CFG_INT, service_conf_int_tab,
|
|
ACL_APP_CTL_CFG_STR, service_conf_str_tab,
|
|
ACL_APP_CTL_END);
|
|
|
|
exit (0);
|
|
}
|
|
|