Searched refs:hb_sock (Results 1 – 1 of 1) sorted by relevance
/Zephyr-latest/subsys/mgmt/hawkbit/ |
D | hawkbit.c | 419 static bool start_http_client(int *hb_sock) in start_http_client() argument 449 *hb_sock = zsock_socket(addr->ai_family, SOCK_STREAM, protocol); in start_http_client() 450 if (*hb_sock < 0) { in start_http_client() 460 if (zsock_setsockopt(*hb_sock, SOL_TLS, TLS_SEC_TAG_LIST, sec_tag_opt, in start_http_client() 466 if (zsock_setsockopt(*hb_sock, SOL_TLS, TLS_HOSTNAME, HAWKBIT_SERVER, in start_http_client() 472 if (zsock_connect(*hb_sock, addr->ai_addr, addr->ai_addrlen) < 0) { in start_http_client() 481 zsock_close(*hb_sock); in start_http_client() 487 static void cleanup_connection(int *hb_sock) in cleanup_connection() argument 489 if (zsock_close(*hb_sock) < 0) { in cleanup_connection()
|