Searched refs:hints (Results 1 – 9 of 9) sorted by relevance
| /samples/net/cloud/tagoio_http_post/src/ |
| A D | sockets.c | 38 struct addrinfo hints; in tagoio_connect() local 44 memset(&hints, 0, sizeof(hints)); in tagoio_connect() 46 hints.ai_socktype = SOCK_STREAM; in tagoio_connect() 47 hints.ai_protocol = IPPROTO_TCP; in tagoio_connect() 49 hints.ai_family = AF_INET6; in tagoio_connect() 51 hints.ai_family = AF_INET; in tagoio_connect() 56 ret = getaddrinfo(TAGOIO_SERVER, port, &hints, &addr); in tagoio_connect() 74 ctx->sock = socket(hints.ai_family, in tagoio_connect() 75 hints.ai_socktype, in tagoio_connect() 76 hints.ai_protocol); in tagoio_connect()
|
| /samples/net/sockets/http_get/src/ |
| A D | http_get.c | 60 static struct addrinfo hints; in main() local 74 memset(&hints, 0, sizeof(hints)); in main() 75 hints.ai_family = AF_INET; in main() 76 hints.ai_socktype = SOCK_STREAM; in main() 77 st = getaddrinfo(HTTP_HOST, HTTP_PORT, &hints, &res); in main()
|
| /samples/net/tftp_client/src/ |
| A D | tftp-client.c | 40 struct addrinfo *res, hints = {0}; in tftp_init() local 44 hints.ai_socktype = SOCK_DGRAM; in tftp_init() 46 ret = getaddrinfo(hostname, CONFIG_TFTP_APP_PORT, &hints, &res); in tftp_init()
|
| /samples/net/sockets/big_http_download/src/ |
| A D | big_http_download.c | 366 static struct addrinfo hints; in main() local 431 memset(&hints, 0, sizeof(hints)); in main() 432 hints.ai_family = AF_INET; in main() 433 hints.ai_socktype = SOCK_STREAM; in main() 436 st = getaddrinfo(host, port, &hints, &res); in main()
|
| /samples/net/sockets/sntp_client/src/ |
| A D | main.c | 26 struct addrinfo hints = { in dns_query() local 35 rv = getaddrinfo(host, NULL, &hints, &res); in dns_query()
|
| /samples/net/cloud/mqtt_azure/src/ |
| A D | main.c | 54 static struct addrinfo hints; variable 398 hints.ai_family = AF_INET; in get_mqtt_broker_addrinfo() 399 hints.ai_socktype = SOCK_STREAM; in get_mqtt_broker_addrinfo() 400 hints.ai_protocol = 0; in get_mqtt_broker_addrinfo() 403 &hints, &haddr); in get_mqtt_broker_addrinfo()
|
| /samples/net/ocpp/src/ |
| A D | main.c | 233 struct addrinfo hints = { in ocpp_getaddrinfo() local 240 ret = getaddrinfo(server, NULL, &hints, &result); in ocpp_getaddrinfo()
|
| /samples/net/cloud/aws_iot_mqtt/src/ |
| A D | main.c | 428 const struct addrinfo hints = { in resolve_broker_addr() local 436 ret = getaddrinfo(CONFIG_AWS_ENDPOINT, port_string, &hints, &ai); in resolve_broker_addr()
|
| /samples/net/secure_mqtt_sensor_actuator/src/ |
| A D | mqtt_client.c | 441 const struct addrinfo hints = { in app_mqtt_init() local 448 CONFIG_NET_SAMPLE_MQTT_BROKER_PORT, &hints, &result); in app_mqtt_init()
|
Completed in 38 milliseconds