oceanbase

Форк
0
28 строк · 1.0 Кб
1
/**
2
 * Copyright (c) 2021 OceanBase
3
 * OceanBase CE is licensed under Mulan PubL v2.
4
 * You can use this software according to the terms and conditions of the Mulan PubL v2.
5
 * You may obtain a copy of Mulan PubL v2 at:
6
 *          http://license.coscl.org.cn/MulanPubL-2.0
7
 * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
8
 * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
9
 * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
10
 * See the Mulan PubL v2 for more details.
11
 */
12

13
extern inline void ussl_skset(ussl_sock_t *s, uint32_t m);
14
extern inline void ussl_skclear(ussl_sock_t *s, uint32_t m);
15
extern inline int ussl_sktest(ussl_sock_t *s, uint32_t m);
16

17
void ussl_sf_init(ussl_sf_t *sf, void *create, void *destroy)
18
{
19
  sf->create = (typeof(sf->create))create;
20
  sf->destroy = (typeof(sf->destroy))destroy;
21
}
22

23
void ussl_sk_init(ussl_sock_t *s, ussl_sf_t *sf, void *handle_event, int fd)
24
{
25
  s->fty = sf;
26
  s->handle_event = (typeof(s->handle_event))handle_event;
27
  s->fd = fd;
28
}
29

Использование cookies

Мы используем файлы cookie в соответствии с Политикой конфиденциальности и Политикой использования cookies.

Нажимая кнопку «Принимаю», Вы даете АО «СберТех» согласие на обработку Ваших персональных данных в целях совершенствования нашего веб-сайта и Сервиса GitVerse, а также повышения удобства их использования.

Запретить использование cookies Вы можете самостоятельно в настройках Вашего браузера.