Lines Matching refs:transport
111 if (client->transport.type == MQTT_TRANSPORT_NON_SECURE) { in prepare_fds()
112 fds[0].fd = client->transport.tcp.sock; in prepare_fds()
115 else if (client->transport.type == MQTT_TRANSPORT_SECURE) { in prepare_fds()
116 fds[0].fd = client->transport.tls.sock; in prepare_fds()
322 client->transport.type = MQTT_TRANSPORT_SECURE_WEBSOCKET; in client_init()
324 client->transport.type = MQTT_TRANSPORT_SECURE; in client_init()
327 struct mqtt_sec_config *tls_config = &client->transport.tls.config; in client_init()
341 client->transport.type = MQTT_TRANSPORT_NON_SECURE_WEBSOCKET; in client_init()
343 client->transport.type = MQTT_TRANSPORT_NON_SECURE; in client_init()
348 client->transport.websocket.config.host = SERVER_ADDR; in client_init()
349 client->transport.websocket.config.url = "/mqtt"; in client_init()
350 client->transport.websocket.config.tmp_buf = temp_ws_rx_buf; in client_init()
351 client->transport.websocket.config.tmp_buf_len = in client_init()
353 client->transport.websocket.timeout = 5 * MSEC_PER_SEC; in client_init()