Home
last modified time | relevance | path

Searched refs:gwaddr (Results 1 – 2 of 2) sorted by relevance

/Zephyr-Core-3.5.0/subsys/net/lib/mqtt_sn/
Dmqtt_sn_transport_udp.c51 udp->sock = zsock_socket(udp->gwaddr.sa_family, SOCK_DGRAM, 0); in tp_udp_init()
61 out = get_ip_str((struct sockaddr *)&udp->gwaddr, ip, sizeof(ip)); in tp_udp_init()
64 ntohs(((struct sockaddr_in *)&udp->gwaddr)->sin_port)); in tp_udp_init()
68 err = zsock_connect(udp->sock, (struct sockaddr *)&udp->gwaddr, udp->gwaddrlen); in tp_udp_init()
138 int mqtt_sn_transport_udp_init(struct mqtt_sn_transport_udp *udp, struct sockaddr *gwaddr, in mqtt_sn_transport_udp_init() argument
141 if (!udp || !gwaddr || !addrlen) { in mqtt_sn_transport_udp_init()
155 memcpy(&udp->gwaddr, gwaddr, addrlen); in mqtt_sn_transport_udp_init()
/Zephyr-Core-3.5.0/include/zephyr/net/
Dmqtt_sn.h217 struct sockaddr gwaddr; member
230 int mqtt_sn_transport_udp_init(struct mqtt_sn_transport_udp *udp, struct sockaddr *gwaddr,