mqtt_client_net.h 1011 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. /*
  2. * Copyright (C) 2012-2019 UCloud. All Rights Reserved.
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the "License").
  5. * You may not use this file except in compliance with the License.
  6. * A copy of the License is located at
  7. *
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. *
  10. * or in the "license" file accompanying this file. This file is distributed
  11. * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
  12. * express or implied. See the License for the specific language governing
  13. * permissions and limitations under the License.
  14. */
  15. #ifndef C_SDK_MQTT_CLIENT_NET_H_
  16. #define C_SDK_MQTT_CLIENT_NET_H_
  17. #ifdef __cplusplus
  18. extern "C" {
  19. #endif
  20. #include "utils_net.h"
  21. /**
  22. * @brief 初始化TLS实现
  23. *
  24. * @param pNetwork 网络操作相关结构体
  25. * @return 返回0, 表示初始化成功
  26. */
  27. int uiot_mqtt_network_init(utils_network_pt pNetwork, const char *host, uint16_t port, uint16_t authmode, const char *ca_crt);
  28. #ifdef __cplusplus
  29. }
  30. #endif
  31. #endif //C_SDK_MQTT_CLIENT_NET_H_